Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cd976334
Commit
cd976334
authored
Oct 28, 2021
by
Evan Read
Committed by
Marcel Amirault
Oct 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add information about the archived docs banner
parent
0cd021c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
doc/development/documentation/site_architecture/index.md
doc/development/documentation/site_architecture/index.md
+29
-0
No files found.
doc/development/documentation/site_architecture/index.md
View file @
cd976334
...
...
@@ -163,6 +163,35 @@ We can then loop over the `versions` array with something like:
Note that the data file must have the
`yaml`
extension (not
`yml`
) and that
we reference the array with a symbol (
`:versions`
).
## Archived documentation banner
A banner is displayed on archived documentation pages with the text
`This is archived documentation for
GitLab. Go to the latest.`
when either:
-
The version of the documentation displayed is not the first version entry in
`online`
in
`content/_data/versions.yaml`
.
-
The documentation was built from the default branch (
`main`
).
For example, if the
`online`
entries for
`content/_data/versions.yaml`
are:
```
yaml
online
:
-
"
14.4"
-
"
14.3"
-
"
14.2"
```
In this case, the archived documentation banner isn't displayed:
-
For 14.4, the docs built from the
`14.4`
branch. The branch name is the first entry in
`online`
.
-
For 14.5-pre, the docs built from the default project branch (
`main`
).
The archived documentation banner is displayed:
-
For 14.3.
-
For 14.2.
-
For any other version.
## Bumping versions of CSS and JavaScript
Whenever the custom CSS and JavaScript files under
`content/assets/`
change,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment