4 Moving away from submodules.
6 At the cost of some release-time overhead, there are several benefits
7 the transition provides projects:
9 * Local builds - Projects will be able to build and view there docs
10 locally, as they would appear on the OPNFV Docs website.
11 * Reduced build time - Patchset verification will only run against
12 individual projects docs, not all projects.
13 * Decoupled build failures - Any error introduced to project's docs
14 would not break builds for all the other projects
19 To make the transition the following steps need to be taken across the
20 project repository, releng repository and opnfvdocs repository.
24 #. Add the following files:
28 .. literalinclude:: files/conf.py
32 .. literalinclude:: files/conf.yaml
34 *docs/requirements.txt*
36 .. literalinclude:: files/requirements.txt
40 .. literalinclude:: files/tox.ini
49 if it doesn't exist along with other index file for directories
50 (release, development)
52 In the releng repository:
54 #. Follow the steps in `this guide`_ from the Linux Foundation Releng team on
55 bootstrapping a new ReadTheDocs (RTD) project.
57 This will ensure RTD will update each time docs patches are merged to
60 .. note: In step 4 of the guide, the file this job should be added to is:
61 **jjb/project/project-jobs.yaml**, where project is the OPNFV project.
63 .. _`this guide`: https://docs.releng.linuxfoundation.org/en/latest/project-documentation.html#bootstrap-a-new-project
66 In the opnfvdocs repository:
68 #. Add a intersphinx link to the opnfvdocs repo:
70 Here 'example' should be replaced with the name of your project.
72 .. code-block:: python
75 intersphinx_mapping['example'] = ('http://opnfv-example.readthedocs.io', None)
77 #. Ensure all references in opnfvdocs are using `:ref:` and not
78 directly specifying submodule files (No `:doc:` or 'submodules/...'
81 #. Remove the submodule from opnfvdocs::
83 diff --git a/.gitmodules b/.gitmodules
84 index 846ab245..aab01642 100644
88 -[submodule "docs/submodules/releng"]
89 - path = docs/submodules/releng