diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-02-16 00:05:19 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-02-16 00:05:19 +0900 |
commit | e23cedb0b72dfbbad918fb94a4d63eb09cab0691 (patch) | |
tree | adb7c36c5415f90905168517cd28b2c372d28e8a | |
parent | 00abc9dc015c881138a2790a9757c58bb3d85255 (diff) |
Revert "introduce @OPNFVDOCS_PATH@ and @PROJECT_PATH@"
This reverts commit 00abc9dc015c881138a2790a9757c58bb3d85255.
-rwxr-xr-x | build-composite.sh | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/build-composite.sh b/build-composite.sh index 90d87738f..12c134b1b 100755 --- a/build-composite.sh +++ b/build-composite.sh @@ -60,23 +60,15 @@ for repo in $repos; do [[ -e $WORKSPACE/$repo/docs ]] || continue [[ -e docs/projects/$repo ]] && rm -rf docs/projects/$repo cp -r $WORKSPACE/$repo/docs docs/projects/$repo - - # Replace PATH variables by source file folder paths. - # Note: Editors can recognize as follows: - # * @PROJECT_PATH@ is pointer to the project folder - # 'opnfvdocs/docs/projects/<project name>'. - # * @OPNFVDOCS_PATH@ is pointer to the main folder 'opnfvdocs/docs'. - # Note: 'docs_build/_src' is the folder in which all document contents - # will be copied during docs build process. - find docs/projects/$repo -type f -name '*.rst' -print | \ - xargs -I f sed -i \ - -e "s|@PROJECT_PATH@|docs_build/_src/projects/$repo|" \ - -e "s|@OPNFVDOCS_PATH@|docs_build/_src|" f done # NOTE: Removing index.rst in project repos to reduce number of docs. find docs/projects -type f -name 'index.rst' -print | xargs -I i rm -f i +# Correct Image file path (workaround) +sed -i -e '/^.. figure::/s|images|../projects/promise/configguide/images|' \ + docs/projects/promise/configguide/featureconfig.rst + # NOTE: automated link generation is not ready... echo echo "Creating document links" |