1 = Antora Docs build procedure
7 $ git clone git://git.evergreen-ils.org/working/Evergreen.git
9 $ git checkout collab/blake/LP1848524_antora_ize_docs
12 First we have to install antora:
14 https://docs.antora.org/antora/2.1/install/install-antora/
19 # (we want to install into directory as opposed to globally)
20 $ npm i @antora/cli@2.1 @antora/site-generator-default@2.1
24 Now, install the ui pre-reqs building
26 https://docs.antora.org/antora-ui-default/set-up-project/
36 At this point you should find a file in:
38 NOTE: build/ui-bundle.zip
40 Now you can build the website. But you may want to edit the file:
42 NOTE: docs-antora/site.yml
44 Because the output folder for the website is defaulted to
46 NOTE: /var/www/html/prod
48 And the default web URL is:
50 NOTE: http://localhost/prod
60 If all went well - then you will have the site built in the output folder that was configured in site.yml!
62 Interesting reading related to Antora and AsciiDoc and AsciiDoctor
64 NOTE: https://asciidoctor.org/docs/asciidoc-asciidoctor-diffs/
66 NOTE: https://blog.anoff.io/2019-02-15-antora-first-steps/
68 NOTE: https://owncloud.org/news/owncloud-docs-migrating-antora-pt-1-2/
73 First you need to have ansible installed
75 NOTE: If you want to manually edit the file, you don't need to install ansible
79 $ sudo apt-get -y install ansible
82 Now, let's run through the antora-lunr procedure:
84 NOTE: Lifted from the base install notes from the https://github.com/Mogztter/antora-lunr[ git repo]
89 $ ansible-playbook setup_lunr.yml
93 This should have edited this file: node_modules/@antora/site-generator-default/lib/generate-site.js
94 as outlined in the git repo notes
96 Now, install the lunr bits (from docs-antora folder)
103 And now, you can re-generate the site but this time with the search box:
107 $ DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr antora site.yml