- Notifications
You must be signed in to change notification settings - Fork3
CIDER's documentation site
clojure-emacs/docs.cider.mx
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The site is generated from the AsciiDoc files in thedoc folder of nREPL’s GitHub repo and is published tohttps://docs.cider.mx.Antora is used to convert the manual into HTML.The filesystem layout is described athttps://docs.antora.org/antora/3.1/component-structure/
To make changes to the manual you simply have to change the files underdoc.The manual will be regenerated manually periodically.
Note | If you want to make changes to the manual’s page structure you’ll have to editnav.adoc. |
Installing the Antora is super simple:
$ make npmCheck outthe detailed installation instructionsif you run into any problems.
You can build the documentation locally from this repo.
$ cd docs.cider.mx$ make buildTo check the generated site you can simply openbuild/site/index.html in your favourite browser.
Note | You’ll need commit access to the repository for this to work. |
The site is automatically deployed to GitHub pages using a GitHub Action.The action will be triggered by any push to themaster branch.It can also be triggered manually if needed.
If you prefer not to install Antora on your local machine, you can build the documentationinside a Docker container like this:
$ cd docs.cider.mx$ docker run -u $(id -u) -v $PWD:/antora:Z --rm -t antora/antora --cache-dir=./.cache/antora antora-playbook.ymlNote that despite the message sayingOpen file:///antora/build/site/index.html in a browser to view your site., youyou should actually look forbuild/site/index.html in the current directory. (that’s because we’ve mounted thecurrent directory as/antora in the container)
Tip | You can read more about running Antora in a container in theofficial docs. |
When cutting new releases you’ll have to updatedantora-playbook.yml to mentiontheir relevant tags from which the documentation needs to be build. Here’s how thislooks for one of the projects:
- url: https://github.com/clojure-emacs/cider.git branches: master tags: ['v1.7.0', 'v1.8.0'] start_path: docsTip | You need to add one such block for each new CIDER module you’re adding to the docs site. |
The most common mistake that people make is to forget to update the version of an Antora docs moduleafter cutting a release. This will result in an error saying you’ve got the same version in two branches (e.g.masterandv1.0). Fixing this is pretty simple - just update the version tomaster inantora.yml.
About
CIDER's documentation site
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.