Skip to content

Commit 9d2e7bd

Browse files
committed
Updated to latest docs
1 parent 59e871a commit 9d2e7bd

File tree

9 files changed

+84
-22
lines changed

9 files changed

+84
-22
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ name: CI
33
on:
44
push:
55
branches: [main]
6+
release:
7+
types:
8+
- created
69

710
jobs:
8-
build:
11+
deploy_www:
912
runs-on: ubuntu-latest
1013

14+
if: ${{ github.event_name == 'push' }}
15+
1116
steps:
1217
- uses: actions/checkout@v2
1318

@@ -34,12 +39,29 @@ jobs:
3439
env:
3540
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3641

42+
release_npm:
43+
runs-on: ubuntu-latest
44+
45+
if: ${{ github.event_name == 'release' }}
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
50+
- name: Use Node.js
51+
uses: actions/setup-node@v1
52+
with:
53+
node-version: "14.x"
54+
registry-url: 'https://registry.npmjs.org'
55+
56+
- name: Install Dependencies
57+
run: |
58+
npm install
59+
3760
- name: Build SDK with Piral
3861
run: |
3962
npm run build:sdk
4063
4164
- name: Publish NPM Package
42-
continue-on-error: true
4365
run: |
4466
mv dist/emulator/*.tgz sdk.tgz
4567
npm publish sdk.tgz --access public

CHANGELOG.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"./src/styles.css"
1111
],
1212
"outputDir": "./dist",
13-
"changelogFile": "./CHANGELOG.md",
1413
"components": {
1514
"logo": "./src/Logo.tsx",
1615
"footer": "./src/Footer.tsx",
@@ -22,6 +21,7 @@
2221
},
2322
"helpers": {
2423
"setup": "./src/setup.tsx",
24+
"plugins": "./src/plugins.ts",
2525
"requestPilets": "./src/requestPilets.ts"
2626
},
2727
"layouts": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@anglesharp/website",
3-
"version": "1.0.3",
3+
"version": "1.1.0",
44
"description": "The official website of the AngleSharp project.",
55
"author": "Florian Rappl",
66
"license": "MIT",
@@ -39,6 +39,6 @@
3939
"gh-pages": "^3.2.0",
4040
"piral-cli": "^0.13.3-pre.2480",
4141
"piral-cli-parcel": "^0.13.3-pre.2480",
42-
"piral-docs-tools": "^0.8.2"
42+
"piral-docs-tools": "^0.9.0"
4343
}
4444
}

src/plugins.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { PiralPlugin } from "piral-docs-tools";
2+
3+
const plugins: Array<PiralPlugin> = [
4+
(context) => ({
5+
setDocDetails(details) {
6+
context.dispatch((state) => ({
7+
...state,
8+
docs: {
9+
...state.docs,
10+
...details,
11+
},
12+
}));
13+
},
14+
}),
15+
];
16+
17+
export default plugins;

src/setup.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
import { PiletApi } from 'piral-docs-tools';
1+
import { PiletApi } from "piral-docs-tools";
22

3-
export default function setup(api: PiletApi) {}
3+
export default function setup(api: PiletApi) {
4+
api.setDocDetails({
5+
// set default version
6+
version: "0.15.0",
7+
});
8+
}

src/styles.css

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
body {
2+
overflow-x: hidden;
3+
}
4+
15
span.red {
26
color: #E21D1D;
37
}
@@ -14,6 +18,10 @@ span.red {
1418
margin: 0 -15px;
1519
}
1620

21+
.homepage .row > div {
22+
margin: 1rem;
23+
}
24+
1725
.homepage .row .half-width {
1826
flex: 1 1 400px;
1927
padding: 0 15px;
@@ -273,7 +281,7 @@ footer .right {
273281
list-style: outside none none !important;
274282
}
275283

276-
@media(max-width:1200px) {
284+
@media(max-width: 1200px) {
277285
.headline-large h1 {
278286
font-size: 140px;
279287
}
@@ -297,9 +305,13 @@ footer .right {
297305
.feature-heading {
298306
font-size: 35px;
299307
}
308+
309+
.pull-left, .pull-right {
310+
float: none !important;
311+
}
300312
}
301313

302-
@media(max-width:991px) {
314+
@media(max-width: 991px) {
303315
.headline-large h1 {
304316
font-size: 105px;
305317
}
@@ -329,9 +341,10 @@ footer .right {
329341
}
330342
}
331343

332-
@media(max-width:768px) {
344+
@media(max-width: 768px) {
333345
.container {
334346
margin: 0 15px;
347+
width: auto;
335348
}
336349

337350
.divider {
@@ -349,10 +362,11 @@ footer .right {
349362

350363
.feature-heading {
351364
font-size: 25px;
365+
word-break: break-all;
352366
}
353367
}
354368

355-
@media(max-width:668px) {
369+
@media(max-width: 668px) {
356370
.headline-large h1 {
357371
font-size: 70px;
358372
}
@@ -371,7 +385,7 @@ footer .right {
371385
}
372386
}
373387

374-
@media(max-width:640px) {
388+
@media(max-width: 640px) {
375389
.headline-large {
376390
padding: 75px 0 25px 0;
377391
}
@@ -390,7 +404,7 @@ footer .right {
390404
}
391405
}
392406

393-
@media(max-width:375px) {
407+
@media(max-width: 375px) {
394408
.feature-divider {
395409
margin: 10px 0;
396410
}

src/types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type {} from "piral-core";
2+
3+
declare module "piral-core/lib/types/custom" {
4+
interface PiletCustomApi extends AngleSharpDocletApi {}
5+
}
6+
7+
export interface AngleSharpDocletApi {
8+
setDocDetails(details: { version?: string; updated?: string }): void;
9+
}

0 commit comments

Comments
 (0)