Skip to content

Commit 81fef61

Browse files
committed
Docs and blog using AS Notes publishing
1 parent 86885af commit 81fef61

35 files changed

Lines changed: 1286 additions & 21 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,11 @@ jobs:
6363
- uses: actions/setup-node@v4
6464
with:
6565
node-version: '20'
66-
cache: 'npm'
67-
cache-dependency-path: publish/package-lock.json
68-
- run: npm ci
69-
working-directory: common
70-
- run: npm ci
71-
working-directory: publish
72-
- run: npm run build
73-
working-directory: publish
74-
- run: >
75-
npm run convert --
76-
--input ../docs-src/pages
77-
--output ../docs
78-
--stylesheet https://cdn.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css
79-
--stylesheet docs.css
80-
--asset ../docs-src/docs.css
81-
working-directory: publish
66+
- run: npx @appsoftwareltd/asnotes-publish --config docs-src/asnotes-publish.notes.json
8267
- uses: actions/upload-pages-artifact@v3
8368
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
8469
with:
85-
path: docs
70+
path: docs-src/notes-publish
8671

8772
deploy-pages:
8873
needs: build-docs

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to AS Notes will be documented here.
44

55
## Pending Release
66

7+
## [2.2.8] - 2026-03-24
8+
9+
- Feature: Publishing to static HTML sites from AS Notes, including npm package for CI/CD.
10+
711
## [2.2.7] - 2026-03-23
812

913
- Feature: Move to offline licence activation for licence keys.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ npx @vscode/vsce publish
894894

895895
```bash
896896
git add .
897-
git commit -m "Release v2.2.7" # change version
898-
git tag v2.2.7 # change version
897+
git commit -m "Release v2.2.8" # change version
898+
git tag v2.2.8 # change version
899899
git push origin main --tags
900900
```
901901

docs-src/.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"markdown.copyFiles.destination": {
3+
"**/*.md": "/assets/images/${fileName}"
4+
}
5+
}

docs-src/asnotes-publish.blog.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"inputDir": "./blog",
3+
"defaultPublic": true,
4+
"defaultAssets": true,
5+
"layout": "blog",
6+
"layouts": "./asnotes-publish.layouts.blog",
7+
"includes": "./asnotes-publish.includes.blog",
8+
"theme": "dark",
9+
"themes": "./asnotes-publish.themes.blog",
10+
"baseUrl": "",
11+
"retina": false,
12+
"includeDrafts": false,
13+
"stylesheets": [],
14+
"exclude": [],
15+
"outputDir": "./blog-publish"
16+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="site-footer">
2+
<p>&copy; 2026 Built with <a href="https://www.asnotes.io">AS Notes</a> by <a href="https://www.appsoftware.com">App Software Ltd</a></p>
3+
</div>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="site-header">
2+
<a class="site-title" href="{{base-url}}/">
3+
<svg class="site-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 191.82 166.13" width="24" height="21"><path fill="currentColor" fill-rule="evenodd" d="M67.09,132.92,47.93,166.13H9.59L0,149.52,86.33,0H105.5L19.17,149.52H38.34l19.17-33.2h76.8l9.59,16.6Zm48-83.12,9.65,16.71H143.9L115.08,16.6q-24,41.57-48,83.12H143.9q14.37,24.9,28.76,49.8h-96l-9.59,16.61H182.24l9.58-16.61-38.34-66.4H96C95.85,82.9,113.39,52.73,115.08,49.8Z"/></svg>
4+
</a>
5+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="site-footer">
2+
<p>&copy; 2026 Built with <a href="https://www.asnotes.io">AS Notes</a> by <a href="https://www.appsoftware.com">App Software Ltd</a></p>
3+
</div>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="site-header">
2+
<a class="site-title" href="{{base-url}}/">
3+
<svg class="site-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 191.82 166.13" width="24" height="21"><path fill="currentColor" fill-rule="evenodd" d="M67.09,132.92,47.93,166.13H9.59L0,149.52,86.33,0H105.5L19.17,149.52H38.34l19.17-33.2h76.8l9.59,16.6Zm48-83.12,9.65,16.71H143.9L115.08,16.6q-24,41.57-48,83.12H143.9q14.37,24.9,28.76,49.8h-96l-9.59,16.61H182.24l9.58-16.61-38.34-66.4H96C95.85,82.9,113.39,52.73,115.08,49.8Z"/></svg>
4+
</a>
5+
</div>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{{title}}</title>{{stylesheets}}{{meta}}
7+
</head>
8+
<body data-layout="blog">
9+
{{header}} <article class="blog-post">
10+
{{date}}{{toc}}
11+
{{content}}
12+
</article>
13+
{{nav}}{{footer}}</body>
14+
</html>

0 commit comments

Comments
 (0)