docs: Bring UI customization page to the latest state
1 file changed
tree: 03d1f6019a834280324ee92c8c187e0747f99e01
  1. .devcontainer/
  2. .github/
  3. .vscode/
  4. docs/
  5. docs-python/
  6. nginx_config/
  7. website-v2/
  8. .asf.yaml
  9. .gitignore
  10. .htaccess
  11. CONTRIBUTING.md
  12. Dockerfile
  13. LICENSE
  14. package-lock.json
  15. README.md
README.md

Github Actions

Apache StreamPipes Website + Docs

Intro

This repository includes the website and documentation of Apache StreamPipes on https://streampipes.apache.org. Two different technologies are used to create both sites:

  • The website & documentation uses Docusaurus to create a versioned documentation.
  • The Python docs are auto-generated from the main code repo using MkDocs.

Both parts are merged to a single directory during the CI process.

Node.js(at most v18) and npm are required to build the documentation.

Build Website & Documentation

  • Run npm install from the website-v2 directory by first running cd ./website-v2.
  • Run npm run start to start the documentation for debugging purposes. The content will be served on http://localhost:3000
  • Run npm run build to build the documentation This will create a folder website-v2/build that includes all required static files.
  • Run npm run ds-version NEW_VERSION to release a new docs version.
  • Python docs: the update-python-docs workflow only refreshes docs-python/dev. For a release, copy the built docs to docs-python/NEW_VERSION, add the version to docs-python/versions.json with the latest alias, and replace both docs-python/latest and the unversioned files in docs-python/ with a copy of the new version (every page's canonical URL points to latest).
  • Pipeline element docs are synced from the main repo by update-extensions-docs; run node scripts/add-pe-descriptions.js in website-v2 afterwards to restore the meta descriptions.

Deploy

  • First, build the website and documentation as explained above.
  • Copy the content from the docs-python to the website-v2/build folder into a subdirectory named python.

The deployment step is done automatically using the asf.yaml process. Code must be merged into the master branch in order to trigger an update of the website.