Compare commits
3
Commits
next
...
1c90f19c63
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c90f19c63 | ||
|
|
c65546ad82 | ||
|
|
6d68cd5d23 |
No files matched your search
File renamed without changes.
+22
-1
@@ -1 +1,22 @@
|
|||||||
.idea
|
# Dependencies
|
||||||
|
/node_modules
|
||||||
|
|
||||||
|
# Production
|
||||||
|
/build
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
.docusaurus
|
||||||
|
.cache-loader
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
.DS_Store
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
.idea
|
||||||
File renamed without changes.
+12
-4
@@ -8,6 +8,9 @@ inputs:
|
|||||||
on-broken-links:
|
on-broken-links:
|
||||||
description: 'Behavior on broken links: throw, warn, or ignore'
|
description: 'Behavior on broken links: throw, warn, or ignore'
|
||||||
default: 'throw'
|
default: 'throw'
|
||||||
|
prefix:
|
||||||
|
description: 'Additional prefix for S3 path'
|
||||||
|
default: ''
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
@@ -27,6 +30,11 @@ runs:
|
|||||||
S3_PATH="${ORG}.${REPO}.${REF}"
|
S3_PATH="${ORG}.${REPO}.${REF}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PREFIX="${{ inputs.prefix }}"
|
||||||
|
if [[ -n "$PREFIX" ]]; then
|
||||||
|
S3_PATH="${PREFIX}/${S3_PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "TARGET_URL=$URL" >> $GITHUB_ENV
|
echo "TARGET_URL=$URL" >> $GITHUB_ENV
|
||||||
echo "S3_PATH=$S3_PATH" >> $GITHUB_ENV
|
echo "S3_PATH=$S3_PATH" >> $GITHUB_ENV
|
||||||
|
|
||||||
@@ -47,24 +55,24 @@ runs:
|
|||||||
- name: Copy docs into Docusaurus
|
- name: Copy docs into Docusaurus
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
DOCUSAURUS_DIR="${{ github.action_path }}/docusaurus"
|
DOCUSAURUS_DIR="${{ github.action_path }}"
|
||||||
rm -rf "${DOCUSAURUS_DIR}/docs"
|
rm -rf "${DOCUSAURUS_DIR}/docs"
|
||||||
cp -r "${{ inputs.docs-path }}" "${DOCUSAURUS_DIR}/docs"
|
cp -r "${{ inputs.docs-path }}" "${DOCUSAURUS_DIR}/docs"
|
||||||
cp "${{ github.workspace }}/.docuservix.yml" "${DOCUSAURUS_DIR}"
|
cp "${{ github.workspace }}/.docuservix.yml" "${DOCUSAURUS_DIR}"
|
||||||
|
|
||||||
- name: Prepare docs
|
- name: Prepare docs
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.action_path }}/docusaurus
|
working-directory: ${{ github.action_path }}
|
||||||
run: node scripts/prepare-docs.mjs
|
run: node scripts/prepare-docs.mjs
|
||||||
|
|
||||||
- name: Install Docusaurus dependencies
|
- name: Install Docusaurus dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.action_path }}/docusaurus
|
working-directory: ${{ github.action_path }}
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.action_path }}/docusaurus
|
working-directory: ${{ github.action_path }}
|
||||||
env:
|
env:
|
||||||
DOCUSERVIX_ON_BROKEN_LINKS: ${{ inputs.on-broken-links }}
|
DOCUSERVIX_ON_BROKEN_LINKS: ${{ inputs.on-broken-links }}
|
||||||
DOCUSERVIX_URL: ${{ env.TARGET_URL }}
|
DOCUSERVIX_URL: ${{ env.TARGET_URL }}
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
@@ -1,20 +0,0 @@
|
|||||||
# Dependencies
|
|
||||||
/node_modules
|
|
||||||
|
|
||||||
# Production
|
|
||||||
/build
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.docusaurus
|
|
||||||
.cache-loader
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
.DS_Store
|
|
||||||
.env.local
|
|
||||||
.env.development.local
|
|
||||||
.env.test.local
|
|
||||||
.env.production.local
|
|
||||||
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user