diff --git a/.travis.yml b/.travis.yml index 93c8531..7d7be3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,13 +22,16 @@ jobs: # Install a more recent version of Doxygen. - git clone --depth=1 --branch Release_1_8_15 https://github.com/doxygen/doxygen.git; cd doxygen; mkdir build; cd build; cmake -G "Unix Makefiles" ..; make -s && sudo make install; cd ../.. # Prepare docs in root directory. + + # Remove docs/ prefix from all .md files for linking. - sed -i'.bak' -e 's|docs/||g' *.md + # Convert any ./src/ style links to the fully qualified URL. - sed -i'.bak' -e 's|[(]\.\(\.*/\)|(https://github.com/'"$TRAVIS_REPO_SLUG"/tree/master'\1|g' *.md # Move into the docs directory. - cd docs/ # Get the docs from the root directory. - cp ../*.md - # Remove docs/ prefix from all .md files for linking. + - ls -la # Fix any links to the Github pages. - sed -i'.bak' -e 's|../..|https://github.com/'"$TRAVIS_REPO_SLUG"'|g' *.md; # Generate the documentation.