Skip to content

Commit bbd750a

Browse files
authored
docs: Add the Cockpit docs (#973)
* docs: Add the Cockpit docs Cockpit's docs are the 'cockpit' module of the 'home' component and are versioned with the SDP like the operator docs. Cockpit is linked under Tools in the navbar and has its own entry in the sidebar. * docs: pr feedback
1 parent 39939e5 commit bbd750a

7 files changed

Lines changed: 37 additions & 2 deletions

File tree

‎antora-playbook.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ content:
5555
- url: https://github.com/stackabletech/stackablectl.git
5656
start_path: docs
5757
branches: main
58+
- url: https://github.com/stackabletech/cockpit.git
59+
start_path: docs
60+
branches:
61+
- main
5862
# demos
5963
- url: https://github.com/stackabletech/demos.git
6064
start_path: docs

‎local-antora-playbook.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ content:
3737
- url: https://github.com/stackabletech/stackablectl.git
3838
start_path: docs
3939
branches: main
40+
- url: https://github.com/stackabletech/cockpit.git
41+
start_path: docs
42+
branches:
43+
- main
4044
# demos
4145
- url: https://github.com/stackabletech/demos.git
4246
start_path: docs

‎modules/ROOT/nav2.adoc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
* Management
22
** xref:management:stackablectl:index.adoc[]
3+
** xref:cockpit:index.adoc[Cockpit]
4+
+
5+
--
6+
include::cockpit:partial$nav.adoc[]
7+
--

‎only-dev-antora-playbook.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ content:
2525
- url: https://github.com/stackabletech/stackablectl.git
2626
start_path: docs
2727
branches: main
28+
- url: https://github.com/stackabletech/cockpit.git
29+
start_path: docs
30+
branches:
31+
- main
2832
# demos
2933
- url: https://github.com/stackabletech/demos.git
3034
start_path: docs

‎scripts/publish-new-version.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ if ! git rev-parse --quiet --verify "$BRANCH" > /dev/null; then
6565
fi
6666

6767
echo "Did you create all the release branches in the operators?"
68-
echo "Did you also create a release branch in the demos repository?"
68+
echo "Did you also create release branches in the cockpit and demos repositories?"
6969
read -r -p "(yes/no): " OPERATORS_BRANCHES_ANSWER
7070

7171
# Convert the user input to lowercase for case-insensitive comparison
7272
OPERATORS_BRANCHES_ANSWER_LOWERCASE=$(echo "$OPERATORS_BRANCHES_ANSWER" | tr '[:upper:]' '[:lower:]')
7373

7474
if [ "$OPERATORS_BRANCHES_ANSWER_LOWERCASE" != "yes" ]; then
75-
echo "Please create all the branches in the operators before proceeding."
75+
echo "Please create all the branches in the operators, cockpit and demos before proceeding."
7676
exit 1
7777
fi
7878

‎supplemental-ui/partials/navbar.hbs‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@
6666
<a class="navbar-link" href="#">Tools</a>
6767
<div class="navbar-dropdown">
6868
<a class="navbar-item" href="{{{ relativize (versioned "management" page "stackablectl/index.html") }}}">stackablectl</a>
69+
{{#if (not (or
70+
(eq page.version "23.1")
71+
(eq page.version "23.4")
72+
(eq page.version "23.7")
73+
(eq page.version "23.11")
74+
(eq page.version "24.3")
75+
(eq page.version "24.7")
76+
(eq page.version "24.11")
77+
(eq page.version "25.3")
78+
(eq page.version "25.7")
79+
(eq page.version "25.11")
80+
(eq page.version "26.3")
81+
(eq page.version "26.7")
82+
))}}
83+
<a class="navbar-item" href="{{{ relativize (versioned "home" page "cockpit/index.html") }}}">Cockpit</a>
84+
{{/if}}
6985
</div>
7086
</div>
7187
<div class="navbar-item has-dropdown is-hoverable">

‎truly-local-playbook.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ content:
2424
# management tools
2525
- url: ../stackablectl/
2626
start_path: docs
27+
- url: ../cockpit/
28+
start_path: docs
2729
# demos
2830
- url: ../demos/
2931
start_path: docs

0 commit comments

Comments
 (0)