Update website versioning workflow

This commit is contained in:
Matej Sima 2019-06-06 15:45:45 +02:00
parent 0e82c183ec
commit 0e6a3f6721
8 changed files with 13 additions and 14 deletions

View File

@ -15,13 +15,11 @@ 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
- cp -r gitlab-pages/website/build/ligo public
artifacts:
paths:
- public
@ -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:

View File

@ -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

View File

@ -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": {

View File

@ -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>

View File

@ -0,0 +1 @@
require('./preversion');

View File

@ -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

View File

@ -1,3 +1 @@
[
"next"
]
["0.0.1"]