Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CIDER's documentation site

NotificationsYou must be signed in to change notification settings

clojure-emacs/docs.cider.mx

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 Antora

Installing the Antora is super simple:

$ make npm

Check outthe detailed installation instructionsif you run into any problems.

Building the Site

You can build the documentation locally from this repo.

$ cd docs.cider.mx$ make build

To check the generated site you can simply openbuild/site/index.html in your favourite browser.

Deploying the Site

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.

Using Docker

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.yml

Note 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.

Updating the Playbook

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: docs
Tip
You need to add one such block for each new CIDER module you’re adding to the docs site.

Troubleshooting

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.

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp