1
0
mirror of https://github.com/gluster/glusterdocs.git synced 2026-02-05 15:47:01 +01:00
Files
glusterdocs/README.md

55 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

# glusterdocs
2016-08-08 15:51:43 +05:30
Source code to gluster documentation: http://docs.gluster.org/
2016-08-08 15:51:43 +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.**
# 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 :
# sudo yum install mkdocs
For Fedora 30+ (run the following in root)
2016-12-07 18:41:01 +05:30
# dnf install python-pip
# pip install -r requirements.txt
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
# 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.