Documentation of AsTeRICS.
This repository provides following workflows:
- Release: builds and deploys website to https://www.asterics.eu/
- Prerelease: builds and deploys website to https://www.asterics.eu/next/
- Algolia: deletes previous, creates and uploads new index to Algolia
NOTE: Workflow Release
runs Algolia
after building the website automatically.
Don't run workflow Algolia
after running Prerelease
since it won't have any effect.
When running workflow Algolia
manually, enable deletion of the previous index to avoid execeeding the allowed amount of index records.
To update the search index of Algolia manually, run following command:
docker run -it --env-file=.env -e "CONFIG=$(cat ./src/vuepress/config/algolia.json | jq -r tostring)" algolia/docsearch-scraper
To run this command, you need following tools installed: docker
, jq
.
Additionally, create a file .env
and specify following variables:
APPLICATION_ID=<APP_ID>
API_KEY=<API_KEY>
Install needed dependencies with
yarn install
TODO
: Write instructions
Setup asterics-docs
using the provided docs
tools (cf. DOCS Reference)
# Initialize asterics-docs
$ yarn docs init
# Deinitialize asterics-docs
$ yarn docs deinit
# Setup docs folder
$ yarn docs setup
Change and edit files
# Show status
$ yarn docs status
Update changes
# Add files for commit
$ yarn docs add <file|folder> [<file|folder> ...]
# Commit files
$ yarn docs commit
# Push changes to origin
$ yarn docs push
NOTE
:
You can inspect and add files without the docs
tool using git
in folder setup by the tool.
Use variables in file .env
to configure the builds
# Deployment
## Host IP address
HOST="127.0.0.1"
## Host port number
PORT=8000
## Path to documentation on server
ENDPOINT="docs"
# docs tool
AUTHOR="Max Mustermann <m.mustermann@github.com>"
COMMITTER="Madeleine Musterfrau <m.musterfrau@github.com>"
Start docs
tool using yarn
:
yarn docs <command>
For detailed instructions use:
yarn docs <command> --help
# Main
yarn docs init
yarn docs setup
yarn docs add
yarn docs commit
yarn docs push
# Supplementary
yarn docs status
yarn docs index
yarn docs convert
yarn docs index
: user selected entriesyarn docs pull
: basic functionalityyarn docs push
: credential handlingyarn docs build/devel
: required?config.js
: VERSION mappings