-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add render step to v2 index.html, to populate version info header
- Loading branch information
1 parent
ccb08a4
commit fcb10f3
Showing
5 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ test.out | |
!/.devcontainer/**/* | ||
|
||
#DOCS | ||
docs/v2/index.html | ||
|
||
docs/v3/*.gem | ||
docs/v3/*.rbc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
Cloud Foundry v2 API Docs | ||
========================= | ||
|
||
To render these docs locally, run `python3 -m http.server 8000` and view at | ||
To render these docs locally, run: | ||
``` | ||
./render.sh | ||
python3 -m http.server 8000 | ||
``` | ||
the docs can then be viewed at | ||
`localhost:8000`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
repo_root="$(git rev-parse --show-toplevel)" | ||
|
||
pushd "$repo_root" | ||
export DOC_CHANGE_COMMIT="$(git log -1 --format=format:%h -- docs/v2)" | ||
git checkout $DOC_CHANGE_COMMIT -- config/version_v2 | ||
export DOC_CHANGE_VERSION="$(cat config/version_v2)" | ||
git checkout -- config/version_v2 | ||
popd | ||
|
||
erb index.html.erb > index.html |