2016-08-08 15:50:52 +05:30
|
|
|
# glusterdocs
|
2016-08-08 15:51:43 +05:30
|
|
|
|
2017-09-01 14:30:07 +01:00
|
|
|
Source code to gluster documentation: http://docs.gluster.org/
|
2016-08-08 15:51:43 +05:30
|
|
|
|
2018-06-27 14:45:09 +05:30
|
|
|
**Important Note:
|
|
|
|
|
This repo had its git history re-written on 19 May 2016.
|
|
|
|
|
Please create a fresh fork or clone if you have an older local clone.**
|
|
|
|
|
|
2016-09-18 14:50:24 +02:00
|
|
|
# Building the docs
|
|
|
|
|
|
|
|
|
|
If you are on EPEL 7 or Fedora, the first thing you will need is to install
|
2016-12-07 18:41:01 +05:30
|
|
|
mkdocs, with the following command :
|
2016-09-18 14:50:24 +02:00
|
|
|
|
2019-12-05 00:14:05 +05:30
|
|
|
# sudo yum install mkdocs
|
2020-11-18 04:17:51 +01:00
|
|
|
|
2020-02-07 12:01:18 +05:30
|
|
|
For Fedora 30+ (run the following in root)
|
2016-12-07 18:41:01 +05:30
|
|
|
|
2019-12-05 00:14:05 +05:30
|
|
|
# dnf install python-pip
|
2020-03-09 14:23:34 +00:00
|
|
|
# pip install -r requirements.txt
|
2016-09-18 14:50:24 +02:00
|
|
|
|
|
|
|
|
Then you need to run mkdocs from the root of that repository:
|
|
|
|
|
|
|
|
|
|
$ mkdocs build
|
|
|
|
|
|
2017-07-13 17:41:36 +05:30
|
|
|
If you see an error about `docs_dir` when using recent versions of mkdocs , try running additional steps mentioned below:
|
2017-07-12 11:53:10 +05:30
|
|
|
|
|
|
|
|
$ cp ./mkdocs.yml ../
|
|
|
|
|
$ cd ..
|
|
|
|
|
|
|
|
|
|
Edit below entry in the copied mkdocs.yml file
|
2017-07-13 17:41:36 +05:30
|
|
|
|
2017-07-12 11:53:10 +05:30
|
|
|
docs_dir: ./glusterdocs/
|
|
|
|
|
|
|
|
|
|
Then you need to run mkdocs
|
|
|
|
|
|
|
|
|
|
$ mkdocs build
|
|
|
|
|
|
2016-10-05 10:39:36 +02:00
|
|
|
The result will be in the `site/` subdirectory, in HTML.
|
2017-07-13 17:41:36 +05:30
|
|
|
|
2020-11-18 04:17:51 +01:00
|
|
|
# Building the docs in Docker
|
|
|
|
|
|
|
|
|
|
Included is a Makefile and a Dockerfile, which enables you to easily build the
|
|
|
|
|
docs inside Docker without installing any dependencies on your system.
|
|
|
|
|
|
|
|
|
|
Simply run the following command to compile the docs:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This Makefile recipe builds a Docker image containing the dependencies required
|
|
|
|
|
and runs `mkdocs` inside the built image, taking care to run the container as
|
|
|
|
|
the current `uid` and `gid` so that your user has ownership of the results in
|
|
|
|
|
the `./site` directory.
|