Skip to content

Commit 63c3a71

Browse files
committed
docs: publish to Quant
1 parent 160f431 commit 63c3a71

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish docs
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ 1.x ]
66
paths:
77
- 'docs/**'
88
workflow_dispatch:
@@ -15,9 +15,11 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@main
1717

18-
- name: vuepress-deploy
19-
uses: jenkey2011/vuepress-deploy@master
20-
env:
21-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
BUILD_SCRIPT: cd docs && npm install && npm run build
23-
BUILD_DIR: src/.vuepress/dist
18+
- name: Publish to Quant
19+
uses: quantcdn/action-deploy@v5
20+
with:
21+
customer: salsa-digital
22+
project: shipshape
23+
token: ${{ secrets.QUANT_TOKEN }}
24+
dir: docs/src/.vuepress/dist
25+
skip-unpublish-regex: '^/main.*'

docs/src/.vuepress/config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module.exports = {
2121
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
2222
],
2323

24-
base: "/shipshape/",
24+
base: "/1.x/",
25+
26+
dest: "src/.vuepress/dist/1.x",
2527

2628
/**
2729
* Theme configuration, here is the default theme configuration for VuePress.
@@ -43,6 +45,15 @@ module.exports = {
4345
text: 'Reference',
4446
link: '/reference/',
4547
},
48+
{
49+
text: '1.x',
50+
items: [
51+
{
52+
text: 'main',
53+
link: 'https://818b00ca-cb1b-4227-99ed-284bd9c399db.quantsites.com/main',
54+
},
55+
],
56+
},
4657
{
4758
text: 'GitHub',
4859
link: 'https://github.com/salsadigitalauorg/shipshape'

0 commit comments

Comments
 (0)