Skip to content

Commit

Permalink
docs: publish to Quant
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufhm committed Feb 6, 2025
1 parent 160f431 commit 63c3a71
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish docs

on:
push:
branches: [ main ]
branches: [ 1.x ]
paths:
- 'docs/**'
workflow_dispatch:
Expand All @@ -15,9 +15,11 @@ jobs:
- name: Checkout
uses: actions/checkout@main

- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_SCRIPT: cd docs && npm install && npm run build
BUILD_DIR: src/.vuepress/dist
- name: Publish to Quant
uses: quantcdn/action-deploy@v5
with:
customer: salsa-digital
project: shipshape
token: ${{ secrets.QUANT_TOKEN }}
dir: docs/src/.vuepress/dist
skip-unpublish-regex: '^/main.*'
13 changes: 12 additions & 1 deletion docs/src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ module.exports = {
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
],

base: "/shipshape/",
base: "/1.x/",

dest: "src/.vuepress/dist/1.x",

/**
* Theme configuration, here is the default theme configuration for VuePress.
Expand All @@ -43,6 +45,15 @@ module.exports = {
text: 'Reference',
link: '/reference/',
},
{
text: '1.x',
items: [
{
text: 'main',
link: 'https://818b00ca-cb1b-4227-99ed-284bd9c399db.quantsites.com/main',
},
],
},
{
text: 'GitHub',
link: 'https://github.com/salsadigitalauorg/shipshape'
Expand Down

0 comments on commit 63c3a71

Please sign in to comment.