Skip to content

An example of how to run a local preview of Antora documentation

License

Notifications You must be signed in to change notification settings

synesthesia/doc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doc-example

An example of how to run a local preview of Antora documentation

Context

When building complex documentation using Antora it's common for a documentation site to be composed from multiple source repositories.

When a developer is working on the whole documentation site they would normally run inside a repository crafted for that site which pulls in all of the source repositories.

However when one is working on a specific code repository it can be frustrating to not be able to preview your documentation locally.

This repository gives a simple example of how to add the necessary Antora preview tooling to any code repository.

For more background see this blog post

Repository layout

Path or file Commentary
package.json Package configuration, includes necessary documentation dependencies as dev-dependencies
local-antora-playbook.yml Antora playbook for running in author mode
gulpfile.js gulp-js configuration to run the local documentation preview
/docs/tech/ Example technical documentation, potentially being built into a website external to this repo
/docs/user/ Example user documentation, potentially being built into a website external to this repo
/docs/local/ Local-only documentation used in our author mode oreviuew

Running the example

  1. clone this repository
  2. in your local working directory:
    • npm install
    • npx gulp
  3. visit http://localhost:5000
  4. make changes to the documentation files and observe the results

About

An example of how to run a local preview of Antora documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published