forked from square/okhttp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_docs.sh
executable file
·25 lines (18 loc) · 718 Bytes
/
test_docs.sh
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
#!/bin/bash
# The website is built using MkDocs with the Material theme.
# https://squidfunk.github.io/mkdocs-material/
# It requires Python to run.
# Install the packages with the following command:
# pip install mkdocs mkdocs-material mkdocs-redirects
set -ex
# Test generating the javadoc jars
./gradlew publishToMavenLocal -DRELEASE_SIGNING_ENABLED=false
# Generate the API docs
./gradlew dokkaHtmlMultiModule
mv ./build/dokka/htmlMultiModule docs/4.x
# Copy in special files that GitHub wants in the project root.
cat README.md | grep -v 'project website' > docs/index.md
cp CHANGELOG.md docs/changelogs/changelog.md
cp CONTRIBUTING.md docs/contribute/contributing.md
# Build the site locally
mkdocs build