Skip to content

Commit 07c5837

Browse files
committed
Use script.
1 parent 331f5ec commit 07c5837

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

.travis.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,7 @@ jobs:
1919
include:
2020
- stage: Deploy Documentation
2121
script:
22-
- pwd
23-
- ls -la
24-
25-
# Install a more recent version of Doxygen.
26-
- 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 ../..
27-
28-
- pwd
29-
- ls -la
30-
31-
# Prepare docs in root directory.
32-
- pwd
33-
- ls -la
34-
35-
# Remove docs/ prefix from all .md files for linking.
36-
- sed -i'.bak' -e 's|docs/||g' *.md
37-
# Convert any ./src/ style links to the fully qualified URL.
38-
- sed -i'.bak' -e 's|[(]\.\(\.*/\)|(https://github.com/'"$TRAVIS_REPO_SLUG"/tree/master'\1|g' *.md
39-
# Move into the docs directory.
40-
- pwd
41-
- ls -la
42-
- cd docs/
43-
# Get the docs from the root directory.
44-
- cp ../*.md
45-
- ls -la
46-
# Fix any links to the Github pages.
47-
- sed -i'.bak' -e 's|../..|https://github.com/'"$TRAVIS_REPO_SLUG"'|g' *.md;
48-
# Generate the documentation.
49-
- doxygen Doxyfile
50-
# Github pages will discard files beginning w/ underscores without this.
51-
- touch html/.nojekyll
22+
- source <(curl -SLs https://raw.githubusercontent.com/bakercp/ci/master/deploy_documentation.sh)
5223
deploy:
5324
provider: pages
5425
skip_cleanup: true

0 commit comments

Comments
 (0)