Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6942603
Merge pull request #13 from mgks/dev
mgks Nov 1, 2025
e5639f9
Merge pull request #15 from mgks/dev
mgks Nov 15, 2025
9846766
Merge pull request #16 from mgks/dev
mgks Nov 15, 2025
9657f0a
Merge pull request #18 from mgks/dev
mgks Nov 25, 2025
070cbb0
Merge pull request #19 from mgks/dev
mgks Nov 27, 2025
d95e522
Merge pull request #21 from mgks/dev
mgks Nov 28, 2025
232e7fe
Merge pull request #22 from mgks/dev
mgks Nov 30, 2025
d2d9e75
Merge pull request #24 from mgks/dev
mgks Dec 6, 2025
55484eb
Merge pull request #26 from mgks/dev
mgks Dec 9, 2025
81e4e2b
Update package-lock.json
mgks Dec 18, 2025
a50cb55
lowered node engine to 18
mgks Dec 18, 2025
d0577dd
Create .npmignore
mgks Dec 19, 2025
f5cbfbc
0.3.3
mgks Dec 19, 2025
223436d
Update README.md
mgks Dec 19, 2025
8db2d2c
Create dependabot.yml
mgks Dec 19, 2025
0e6338f
Bump the actions group with 3 updates
dependabot[bot] Dec 19, 2025
f84c4e9
Merge pull request #27 from mgks/dependabot/github_actions/actions-d2…
mgks Dec 19, 2025
936645b
Update npm-publish.yml
mgks Dec 19, 2025
77a05c5
Merge branch 'main' of https://github.com/mgks/docmd
mgks Dec 19, 2025
319db0a
Update npm-publish.yml
mgks Dec 20, 2025
3f679a8
Update .npmignore
mgks Dec 20, 2025
32bc85b
0.3.4
mgks Dec 20, 2025
1f95f3e
Add WebAssembly and browser support
tonidy Dec 25, 2025
d018467
Move wasm demo to src and update build script
tonidy Dec 25, 2025
3e78b05
Added live preview build
mgks Jan 2, 2026
71ddff7
Merge pull request #29 from tonidy/run-on-wasm
mgks Jan 2, 2026
4a7f7c6
Bump the npm-dependencies group with 8 updates
dependabot[bot] Jan 2, 2026
c5597fd
Merge pull request #28 from mgks/dependabot/npm_and_yarn/npm-dependen…
mgks Jan 2, 2026
9284813
Improve dev server UX and config fallback logic
mgks Jan 2, 2026
b4c8a0a
workflow update
mgks Jan 2, 2026
c6421f3
Added live preview documentation
mgks Jan 2, 2026
84077d0
Update docmd.js
mgks Jan 2, 2026
ecf75b0
Migrated from config.js
mgks Jan 2, 2026
2ae6d33
Update 0.3.5
mgks Jan 2, 2026
fc78999
Update README.md
mgks Jan 2, 2026
b33093a
Added back support
mgks Jan 2, 2026
c82de1e
Dependencies update
mgks Jan 2, 2026
aac5e0e
0.3.5
mgks Jan 2, 2026
469345a
Introducing --offline
mgks Jan 2, 2026
bd986a3
Improved URL handling
mgks Jan 2, 2026
346d3ae
Update index.md
mgks Jan 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2
updates:
# -------------------------------------------------------
# 1. GitHub Actions (Universal for all your projects)
# Keeps your workflow files (checkout, setup-node) updated
# -------------------------------------------------------
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"

# -------------------------------------------------------
# 2. NPM (Specific to tree-fs / Node projects)
# -------------------------------------------------------
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
# Ignore major updates automatically to prevent breaking changes
# Remove this 'ignore' block if you want to see v1 -> v2 updates
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
groups:
# Group all minor/patch updates into one PR
npm-dependencies:
patterns:
- "*"

# -------------------------------------------------------
# 3. (Optional) Uncomment for Python projects
# -------------------------------------------------------
# - package-ecosystem: "pip"
# directory: "/"
# schedule:
# interval: "weekly"
# groups:
# python-deps:
# patterns:
# - "*"
21 changes: 15 additions & 6 deletions .github/workflows/deploy-docmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: deploy docmd

on:
push:
branches: [main] # Your default branch
workflow_dispatch: # Allows manual triggering
branches: [main]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -18,25 +18,34 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Node.js ⚙️
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'

- name: Update NPM to Latest 🆕
run: npm install -g npm@latest

- name: Install Dependencies 📦
run: npm ci

- name: Build docmd's Own Docs 🛠️
run: node ./bin/docmd.js build

- name: Build Live Editor ⚡
run: node scripts/build-live.js

- name: Inject Live Editor into Site
run: mv dist site/live

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: ./site

Expand Down
47 changes: 18 additions & 29 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,38 @@
name: Publish Package to NPM and GitHub Packages
name: Publish package to npm

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Node.js v22
uses: actions/setup-node@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Ensure recent npm
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

# ------------------------------------------
# --- Publish to NPM Registry (npmjs.com) ---
# ------------------------------------------
- name: Configure NPM for public registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Run tests (optional)
run: npm test --if-present

- name: Publish to NPM Registry
run: npm publish --access=public
- name: Publish to npm
run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# ----------------------------------------
# --- Publish to GitHub Packages (GPR) ---
# ----------------------------------------
- name: Configure NPM for GitHub Packages registry
run: |
echo "@mgks:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc

- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@ ROADMAP.md

.DS_Store
genctx.json
genctx.config.json
genctx.context.md
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.git
.github
.DS_Store
.gitignore
.gitattributes
genctx.config.json
genctx.context.md
docs/
assets/css/welcome.css
assets/images/preview-*
preview.gif
docmd-preview.png
Loading