Skip to content

Commit

Permalink
doc: switch to mdbook
Browse files Browse the repository at this point in the history
Fixes #569.
  • Loading branch information
tkurki committed Oct 31, 2021
1 parent 3c48fad commit 2726625
Show file tree
Hide file tree
Showing 35 changed files with 31 additions and 12 deletions.
4 changes: 0 additions & 4 deletions gitbook-docs/book.json

This file was deleted.

3 changes: 3 additions & 0 deletions mdbook/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
book
otherBranches.md
vesselsBranch.md
5 changes: 5 additions & 0 deletions mdbook/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[book]
authors = []
language = "en"
multilingual = false
src = "src"
18 changes: 18 additions & 0 deletions mdbook/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
mdbook:
container_name: mdbook
image: peaceiris/mdbook:v0.4.13
stdin_open: true
tty: true
ports:
- 3000:3000
- 3001:3001
volumes:
# - ${PWD}/gitbook-docs:/book
- ${PWD}/mdbook:/book
command:
- serve
- --hostname
- '0.0.0.0'
File renamed without changes.
2 changes: 1 addition & 1 deletion gitbook-docs/SUMMARY.md → mdbook/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Signal K Specification

* [Signal K Specification](README.md)
* Getting Started
* [Getting Started]()
* [Using SK](start_using.md)
* [Developing with SK](start_developing.md)
* [Data Model]()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"docs:changelog": "github-changes -f gitbook-docs/changelog.md -o signalk -r specification -a --only-pulls --use-commit-body --data=pulls",
"docs:prep": "gitbook install gitbook-docs && cross-var replace-in-file /_version_/g $npm_package_version ./gitbook-docs/* --isRegex --verbose && mdprepare gitbook-docs/*.md",
"docs:keys": "node scripts/processSchemaFiles.js",
"docs:html": "cross-var gitbook build gitbook-docs $npm_package_version/doc",
"docs:pdf": "cross-var gitbook pdf gitbook-docs $npm_package_version/doc/signalk.pdf",
"docs:mobi": "cross-var gitbook mobi gitbook-docs $npm_package_version/doc/signalk.mobi",
"docs:epub": "cross-var gitbook pdf gitbook-docs $npm_package_version/doc/signalk.epub",
"docs:serve": "gitbook serve gitbook-docs",
"docs:all": "npm run docs:prep && npm run docs:changelog && npm run docs:keys && npm run docs:html && npm run docs:pdf && npm run docs:mobi && npm run docs:epub",
"docs:publish": "npm run docs:all && cross-var git add $npm_package_version && git stash && git checkout gh-pages && git pull && cross-var git checkout stash -- $npm_package_version && git add master && cross-var git commit --allow-empty -m $npm_package_version && git push [email protected]:signalk/specification gh-pages"
"docs:html": "cross-var docker-compose -f mdbook/docker-compose.yml run mdbook build -d $npm_package_version/doc",
"docs:serve": "docker-compose -f mdbook/docker-compose.yml up",
"docs:all": "npm run docs:prep && npm run docs:changelog && npm run docs:keys && npm run docs:html",
"docs:publish": "TODO npm run docs:all && cross-var git add $npm_package_version && git stash && git checkout gh-pages && git pull && cross-var git checkout stash -- $npm_package_version && git add master && cross-var git commit --allow-empty -m $npm_package_version && git push [email protected]:signalk/specification gh-pages"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2726625

Please sign in to comment.