Skip to content

elastic/docs-builder-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A sample repository for elastic/docs-builder

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •