File tree Expand file tree Collapse file tree 5 files changed +38
-2
lines changed
Expand file tree Collapse file tree 5 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 3030 - uses : ./.github/workflows/composite/setup
3131 with :
3232 WORKING_DIRECTORY : docs/v3
33+ - name : Render V2 docs
34+ working-directory : docs/v2
35+ run : ./render.sh
3336 - name : Run docs tests
3437 run : |
3538 bundle config set --local without 'development'
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ test.out
2828! /.devcontainer /** /*
2929
3030# DOCS
31+ docs /v2 /index.html
3132
3233docs /v3 /* .gem
3334docs /v3 /* .rbc
Original file line number Diff line number Diff line change 11Cloud Foundry v2 API Docs
22=========================
33
4- To render these docs locally, run ` python3 -m http.server 8000 ` and view at
5- ` localhost:8000 ` .
4+ To render these docs locally, run:
5+ ```
6+ ./render.sh
7+ python3 -m http.server 8000
8+ ```
9+
10+ The docs can then be viewed at ` localhost:8000 ` .
Original file line number Diff line number Diff line change 3535</ head >
3636< body >
3737< div class ="container ">
38+ < div class ="panel panel-info ">
39+ < div class ="panel-heading ">
40+ < h3 class ="panel-title "> Version Note:</ h3 >
41+ </ div >
42+ < div class ="panel-body ">
43+ These docs were last changed with
44+ < a href ="https://github.com/cloudfoundry/cloud_controller_ng/commit/ <%= ENV [ 'DOC_CHANGE_COMMIT' ] %> " class ="alert-link "> <%= ENV [ 'DOC_CHANGE_COMMIT' ] %> </ a >
45+ , and therefore they are up-to-date for CAPI version <%= ENV [ 'DOC_CHANGE_VERSION' ] %> .
46+ The V2 API is considered stable, and further changes are not expected.
47+ For previous versions, see the < code > docs/v2</ code > directory at
48+ < a href ="https://github.com/cloudfoundry/cloud_controller_ng/commits/main/config/version_v2 " class ="alert-link "> the desired version</ a >
49+ </ div >
50+ </ div >
51+
3852 < h1 > Cloud Foundry API</ h1 >
3953
4054 < div class ="article ">
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -euo pipefail
3+
4+ repo_root=" $( git rev-parse --show-toplevel) "
5+
6+ pushd " $repo_root "
7+ export DOC_CHANGE_COMMIT=" $( git log -1 --format=format:%h -- docs/v2) "
8+ git checkout $DOC_CHANGE_COMMIT -- config/version_v2
9+ export DOC_CHANGE_VERSION=" $( cat config/version_v2) "
10+ git checkout -- config/version_v2
11+ popd
12+
13+ erb index.html.erb > index.html
You can’t perform that action at this time.
0 commit comments