Update website versioning workflow
This commit is contained in:
parent
0e82c183ec
commit
0e6a3f6721
@ -15,11 +15,9 @@ stages:
|
||||
- cd gitlab-pages/website
|
||||
- npm install
|
||||
script:
|
||||
- rm -rf versioned_docs/version-next
|
||||
- rm versioned_sidebars/version-next-sidebars.json
|
||||
- node removeNext.js
|
||||
- npm run version next
|
||||
- npm run build
|
||||
after_script:
|
||||
- cd ../..
|
||||
- cp -r gitlab-pages/website/build/ligo public
|
||||
artifacts:
|
||||
@ -121,6 +119,8 @@ stages:
|
||||
- master
|
||||
|
||||
|
||||
# Pages are deployed from both master & dev, be careful not to override 'next'
|
||||
# in case something gets merged into 'dev' while releasing.
|
||||
pages:
|
||||
<<: *website_build
|
||||
# only:
|
||||
|
2
gitlab-pages/.gitignore
vendored
2
gitlab-pages/.gitignore
vendored
@ -10,3 +10,5 @@ website/build/
|
||||
website/yarn.lock
|
||||
website/node_modules
|
||||
website/i18n/*
|
||||
website/versioned_docs/version-next
|
||||
website/versioned_sidebars/version-next-sidebars.json
|
@ -6,6 +6,8 @@
|
||||
"publish-gh-pages": "docusaurus-publish",
|
||||
"write-translations": "docusaurus-write-translations",
|
||||
"version": "docusaurus-version",
|
||||
"preversion": "node preversion.js",
|
||||
"postversion": "node postversion.js",
|
||||
"rename-version": "docusaurus-rename-version"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -28,7 +28,6 @@ function Versions(props) {
|
||||
<header className="postHeader">
|
||||
<h1>{siteConfig.title} Versions</h1>
|
||||
</header>
|
||||
<p>New versions of this project are released every so often.</p>
|
||||
<h3 id="latest">Current version (Stable)</h3>
|
||||
<table className="versions">
|
||||
<tbody>
|
||||
@ -53,10 +52,6 @@ function Versions(props) {
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>
|
||||
This is the version that is configured automatically when you first
|
||||
install this project.
|
||||
</p>
|
||||
<h3 id="rc">Pre-release versions</h3>
|
||||
<table className="versions">
|
||||
<tbody>
|
||||
@ -78,14 +73,13 @@ function Versions(props) {
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Other text describing this section.</p>
|
||||
<h3 id="archive">Past Versions</h3>
|
||||
<p>Here you can find previous versions of the documentation.</p>
|
||||
<table className="versions">
|
||||
<tbody>
|
||||
{versions.map(
|
||||
version =>
|
||||
version !== latestVersion && (
|
||||
version !== latestVersion && version !== "next" && (
|
||||
<tr>
|
||||
<th>{version}</th>
|
||||
<td>
|
||||
|
1
gitlab-pages/website/postversion.js
Normal file
1
gitlab-pages/website/postversion.js
Normal file
@ -0,0 +1 @@
|
||||
require('./preversion');
|
@ -34,4 +34,6 @@ ligo --help
|
||||
For now, please refer to the steps described in the [Dockerfile](https://github.com/stove-labs/granary/blob/develop/docker/ligo/Dockerfile).
|
||||
|
||||
|
||||
## next-2
|
||||
|
||||
|
||||
|
@ -1,3 +1 @@
|
||||
[
|
||||
"next"
|
||||
]
|
||||
["0.0.1"]
|
Loading…
Reference in New Issue
Block a user