Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.25 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.25 KB

docs-builder playground

This repository exists to be used as a playground by everyone in the docs-team to test https://github.com/elastic/docs-builder

Usage

Simply clone the repository and open in VS Code.

Then you can use the builtin build command CMD+SHIFT+B to build this repositories documentation.

Build Tasks

  • Incremental: does a full build initially after which it will only compile changed files on each subsequent invocation
  • Full: always does a full build.
  • Serve: serves the documentation in 'live' mode at http://localhost:8080.
    • All changes should be reflected on the live site without restarting.

Non VS Code usage

Incremental

docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" \
  ghcr.io/elastic/docs-builder:edge

This ensures .git/docs and .artifacts (the default output directory) are mounted.

Full (--force)

docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" \
  ghcr.io/elastic/docs-builder:edge --force

Live mode

docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" -p 8080:8080 ghcr.io/elastic/docs-builder:edge serve