mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:13:04 +00:00
e87f2d895c
Note: this "upgrades" ninja to 1.11.1. Change-Id: Idca0f8a2a67cf5d5dbe75661bb14de174012580f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/261101 Reviewed-by: Daco Harkes <dacoharkes@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Thomas <athom@google.com> |
||
---|---|---|
.. | ||
build | ||
CustomShellSessionPygmentsLexer | ||
styles | ||
templates | ||
xref_extractor | ||
README.md |
This directory contains helper scripts for rendering runtime wiki pages as HTML.
# Run webserver for development.
$ runtime/tools/wiki/build/build.py
# Build wiki for deployment
$ runtime/tools/wiki/build/build.py --deploy
Markdown extensions
Asides
Paragraphs wrapped into <aside>...</aside>
will be rendered as a sidenote on
margins of the page.
Cross-references @{ref|text}
Cross-references are rendered as links to GitHub at the current commit.
@{file-path}
is just rendered a link to the given file;@{package:name/path.dart}
is rendered as a link to filepath.dart
within packagename
- actual path is resolved via root.packages
file in the SDK root;@{c++-symbol}
is rendered as a link to the line in the file which defines the given C++ symbol.
Prerequisites
- Install all Python dependencies.
$ pip3 install coloredlogs jinja2 markdown aiohttp watchdog pymdown-extensions pygments
- Install the custom pygments lexer we use for shell session examples:
$ cd runtime/tools/wiki/CustomShellSessionPygmentsLexer $ python3 setup.py develop
- Install SASS compiler (make sure that SASS binary is in your path).
- Generate
xref.json
file following instructions inxref_extractor/README.md
.