8d46b7cd81
It's just names and comments, they already used `package_config.json` as the package configuration. Change-Id: Icd421ed99079fa9058426e1536565658938252ac Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414100 Commit-Queue: Lasse Nielsen <lrn@google.com> Reviewed-by: Brian Quinlan <bquinlan@google.com>
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
Admonitions and Asides
Blockquotes starting with > **Marker** are converted either:
- into sidenotes (if
MarkerisNote), which will be rendered on margins of the page; - admonitions (if
MarkerisSource to read,Trying itorWarning).
Referencing C++ symbols and files
Script extends Markdown references with special support for references that
use [`ref`][] and [text][`ref`]. The following values for ref are
recognized and resolved as links to GitHub at the current commit.
file-pathis resolved as a link to the given file;package:name/path.dartis resolved as a link to filepath.dartwithin packagename- actual path is resolved via.dart_tool/package_config.jsonfile in the SDK root;c++ symbolis resolved as a link to the line in the file which defines the given C++ symbol.
If markdown file contains any references in this form then running
runtime/tools/wiki/build/build.py --deploy will generate a reference
section at the end of the file. Appending this section allows other Markdown
tools (e.g. GitHub viewer) to render such special links correctly.
Prerequisites
- Install all Python dependencies.
$ pip3 install coloredlogs jinja2 markdown aiohttp watchdog pymdown-extensions pygments - Install
libclang(brew install llvmon Mac OS X). - Install SASS compiler (make sure that SASS binary is in your path).