-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
70 lines (52 loc) · 2.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
------
docker
------
# Build the docker image with:
docker-compose build
# Run the image to build the docs with:
docker-compose run app
-----------------
Patch maintenance
-----------------
The document generation makes a few programmatic changes to the upstream
documentation in order to build successfully with SUSE theming, in the files
tox.ini, doc/requirements.txt, and doc/source/conf.gpy. Other changes to the
documentation are accomplished by maintaining patch files and applying them
during the build. Whenever additional downstream modifications are necessary, a
new patch file needs to be created. Use the following process to accomplish
this:
Generate the documentation, which applies the patch from this repo:
$ env PROJECTS={project} ./gen_docs.sh
Make and test document changes:
$ cd upstream/{project}
Iteratively:
- Edit the document source under doc/source
- Build the docs using:
$ tox -e docs
- View the built documents in a browser at:
file:///...../doc-cloud/scripts/upstream/{project}/doc/build/html
When ready to generate the new patch file, first reset those files that the
script will programmatically modify:
$ git checkout tox.ini doc/requirements.txt doc/source/conf.py
Create the new patch file with
$ git diff > ../../patches/{projects}/00.patch
Commit it into git
$ cd ../..
$ git commit
----------------------
Building upstream docs
----------------------
If you're required to build the upstream Administration and User Guides, you can build and
view each individual guide upstream: https://docs.openstack.org/doc-contrib-guide/docs-builds.html
If you want to build the SUSE version, equivalent to what is published at at
suse.com/documentation, perform the following:
1. Clone this repository: https://github.com/SUSE-Cloud/doc-cloud-upstream
2. Change into the `/scripts/` directory:
$ cd scripts
3. Run `./gen_docs.sh`
This process clones every repository required, and builds them using
the `suse_sphinx_theme`. You need to allocate at least an hour for the
process to complete.
4. You can find the finished product in the `/scripts/build/` folder.
The completed `/build/` folder contains the full and complete content required
to publish to docserv or docserv2. Do not alter this format when publishing.