How elastic/docs works
This repository supports the pre-9.0 Elastic Asciidoc documentation workflow: build a book or a set of books into HTML, then preview the result or validate cross-book links. The README documents single/multi-page output, chunking, and alternative-language examples; the source tree also contains browser widgets and Asciidoctor extensions. The build executable itself is not present in the supplied tree, so its internal orchestration is represented only at the documented subsystem level. Edges reflect README statements or relationships shown in the supplied excerpts and SOURCE INDEX.
Main entry points: lib Book build engine · index-v1.js Docs browser entry · preview.js Preview HTTP server · console_widget.jsx Console widget
Components 26
Documentation builds
- Book build engine
resources/asciidoctor/lib - Book sources
- HTML output
- All-books validation
integtest/spec
Asciidoc rendering
- Asciidoc extensions
resources/asciidoctor/lib - DocBook compatibility
resources/asciidoctor/lib/docbook_compat - Chunking and navigation
resources/asciidoctor/lib/chunker - Alternative lookup
resources/asciidoctor/lib/alternative_language_lookup
Preview service
- Preview HTTP server
preview/preview.js - Preview file and diff access
preview/core.js - Git object and diff access
preview/git.js - HTML page templating
template/template.js
Browser experience
- Docs browser entry
resources/web/docs_js/index-v1.js - Alternative picker
resources/web/docs_js/components/alternative_picker.jsx - Alternative switcher
resources/web/docs_js/components/alternative_switcher.js - Console widget
resources/web/docs_js/components/console_widget.jsx - Settings actions
resources/web/docs_js/actions/settings.js - Modal actions
resources/web/docs_js/actions/modal.js - Feedback widget
resources/web/docs_js/components/feedback_widget.jsx - Feedback modal
resources/web/docs_js/components/feedback_modal.jsx - Tabbed content
resources/web/docs_js/components/tabbed_widget.js - UI state store
resources/web/docs_js/store.js - Syntax highlighter
resources/web/lib/prettify/prettify.js - SQL language rules
resources/web/lib/prettify/lang-sql.js
Other components
- Docs author
- Preview user
Connections 25
- Docs author → Book sources: edits
README.asciidoc - Docs author → Book build engine: runs build
README.asciidoc - Book build engine → Book sources: builds from
README.asciidoc - Book build engine → HTML output: generates
README.asciidoc - Book build engine → All-books validation: checks links
README.asciidoc - Book build engine → Asciidoc extensions: uses
- Book build engine → Chunking and navigation: applies chunking
README.asciidoc - Book build engine → Alternative lookup: finds examples
README.asciidoc - Book build engine → DocBook compatibility: uses compatibility
resources/asciidoctor/lib/docbook_compat/titleabbrev_handler.rb - Preview user → Preview HTTP server: requests pages
preview/preview.js - Preview HTTP server → Preview file and diff access: requests files
preview/preview.js - Preview HTTP server → HTML page templating: templates pages
preview/preview.js - Preview file and diff access → Git object and diff access: reads Git data
preview/core.js - HTML output → Preview HTTP server: serves preview
- Docs browser entry → Alternative switcher: initializes
resources/web/docs_js/index-v1.js - Docs browser entry → Console widget: mounts
resources/web/docs_js/index-v1.js - Docs browser entry → Feedback modal: imports
resources/web/docs_js/index-v1.js - Docs browser entry → Feedback widget: imports
resources/web/docs_js/index-v1.js - Docs browser entry → Tabbed content: imports
resources/web/docs_js/index-v1.js - Console widget → Alternative picker: renders
resources/web/docs_js/components/console_widget.jsx - Console widget → Settings actions: dispatches settings
resources/web/docs_js/components/console_widget.jsx - Settings actions → Modal actions: closes modal
resources/web/docs_js/actions/settings.js - Docs browser entry → UI state store: imports
resources/web/docs_js/index-v1.js - Docs browser entry → Syntax highlighter: loads highlighter
resources/web/docs_js/index-v1.js - SQL language rules → Syntax highlighter: registers rules
resources/web/lib/prettify/lang-sql.js