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