From 53c69ce04faed3dcc68ca0f54cb8d703d8babf69 Mon Sep 17 00:00:00 2001 From: Nikhil Ramakrishnan Date: Sat, 25 Aug 2018 12:06:32 +0530 Subject: [PATCH] * docs/reference: Add resources for `docwriter'. Add the required resources (images, JS, CSS) for `docwriter'. * docs/reference/.gitignore: Update to ignore `site' folder and other files generated by docwriter. * docs/reference/README: Add docwriter usage information and troubleshooting tips. * docs/reference/markdown: New directory to hold generated markdown files and other resources. --- docs/reference/.gitignore | 11 + docs/reference/README | 34 ++- docs/reference/markdown/images/favico.ico | Bin 0 -> 1150 bytes docs/reference/markdown/javascripts/extra.js | 54 +++++ docs/reference/markdown/stylesheets/extra.css | 218 ++++++++++++++++++ 5 files changed, 315 insertions(+), 2 deletions(-) create mode 100644 docs/reference/markdown/images/favico.ico create mode 100644 docs/reference/markdown/javascripts/extra.js create mode 100644 docs/reference/markdown/stylesheets/extra.css diff --git a/docs/reference/.gitignore b/docs/reference/.gitignore index 2d19fc766..e245bdc52 100644 --- a/docs/reference/.gitignore +++ b/docs/reference/.gitignore @@ -1 +1,12 @@ +# Static site folder +site/ + +# HTML and Markdown files *.html +*.md + +# MkDocs Config file +mkdocs.yml + +# Python virtualenv +env/ diff --git a/docs/reference/README b/docs/reference/README index 51b04d6f1..3ffcfc080 100644 --- a/docs/reference/README +++ b/docs/reference/README @@ -1,5 +1,35 @@ -After saying `make refdoc' this directory contains the FreeType API -reference. You need python to make this target. +After saying `make refdoc' or `make refdoc-venv' the `site/' directory +contains the FreeType API reference. You need python and pip to make this +target. + +There are two ways to generate the documentation: + +1. Using `make refdoc': + + - Ensure `python' and `pip' are available. + - Install pip package `docwriter' with `pip install --user docwriter'. + - Make target with `make refdoc'. + - This target can be run offline once required packages are installed. + +2. Using `make refdoc-venv' (requires internet access): + + - Ensure `python', `pip' and python package `virtualenv' are available. + - Make target with `make refdoc-venv'. + - This may or may not require internet access every time depending on + pip and system caching. This also works with Jam: Just type `jam refdoc' in the main directory. +Some troubleshooting tips: + +* Regularly run `pip install --upgrade docwriter' to check for updates which +may include bug fixes. + +* Ensure that `docwriter' is installed in the same python target that +`make refdoc' uses (python3/python2/python). + +* `pip' and `python' may point to different versions of Python. Check using +`python --version' and `pip --version'. + +* If none of this works, send a mail to `freetype-devel@nongnu.org' or file +an issue at `https://github.com/freetype/docwriter/issues'. diff --git a/docs/reference/markdown/images/favico.ico b/docs/reference/markdown/images/favico.ico new file mode 100644 index 0000000000000000000000000000000000000000..a1a22ed43bd4a8f885c727c8061f5559517b5a0d GIT binary patch literal 1150 zcmdT^-7AAp7(X&LEj3e{LS{3z`3MP{Bt;~jGZfzUrDQ|%wJ=hwk&lHdqZO`Xxpv|2 za^b?w&pFS_TBLBdPS1JHd4A9DoagzS-j}f~J`4uNXA28x7&9@(9Nc(_N7OiXjB(7U zSB>_3vPwC~WRuRi@%r|XvVp^Dv~HT<**3$yWrinQgz=-c6fSZ{V-0YJ)tvHa4OZgQ zg!dg=V4u~J9u+gWjV-4yM29~AT-I