Skip to content

digital-s/doc

 
 

Repository files navigation

doc

Tarantool documentation source, published at https://www.tarantool.io/en/doc/1.10/

How to build Tarantool documentation using Docker

Build docker image

docker build -t tarantool-doc-builder .

Build Tarantool documentation using tarantool-doc-builder image

NOTE:

Run this command only if you don't have untracked files! check it by git status Also failures during git submodule update can be fixed by:

git submodule deinit -f .
git submodule update --init

Init and update submodules:

docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "./update_submodules.sh"

or do it manually:

git submodule init
git submodule update
git pull --recurse-submodules
git submodule update --remote --merge

Init make commands:

docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "cmake ."

Run a required make command inside tarantool-doc-builder container:

docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make html"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make html-ru"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make singlehtml"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make singlehtml-ru"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make pdf"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make pdf-ru"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make json"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make json-ru"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make epub"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make epub-ru"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make update-pot"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make update-po"
docker run --rm -it -v $(pwd):/doc tarantool-doc-builder sh -c "make update-po-force"

Run documentation locally on your machine

using python3 built-in server:

cd output/html
python3 -m http.server

or python2 built-in server:

cd output/html
python -m SimpleHTTPServer

then go to localhost:8000 in your browser.

Building css from less

Install required packages:

npm install -g clean-css clean-css-cli node-less less-plugin-autoprefix 

Make css files:

cd _theme/tarantool/_less
make all

Then remove output/html folder and build the documentation again

How to contribute

To contribute to documentation, use the REST format for drafting and submit your updates as a pull request via GitHub.

To comply with the writing and formatting style, use the guidelines provided in the documentation, common sense and existing documents.

Notes:

  • If you suggest creating a new documentation section (a whole new page), it has to be saved to the relevant section at GitHub.

  • If you want to contribute to localizing this documentation (for example into Russian), add your translation strings to .po files stored in the corresponding locale directory (for example /locale/ru/LC_MESSAGES/ for Russian). See more about localizing with Sphinx at http://www.sphinx-doc.org/en/stable/intl.html

Releases

No releases published

Packages

No packages published

Languages

  • Less 33.6%
  • Python 27.1%
  • JavaScript 12.6%
  • HTML 12.3%
  • CSS 6.9%
  • CMake 4.4%
  • Other 3.1%