fix: переход на jt4d-wiki.ru.net

This commit is contained in:
2026-06-15 09:32:28 +03:00
parent e99b5599a4
commit d9178e792d
3 changed files with 9 additions and 7 deletions
+7 -4
View File
@@ -20,13 +20,15 @@ runs:
ORG="${{ github.repository_owner }}"
if [[ "$REF" == "main" || "$REF" == "master" ]]; then
URL="http://${REPO}.${ORG}.docs.jt4d.ru.net"
URL="http://${REPO}.${ORG}.jt4d-wiki.ru.net"
S3_PATH="${ORG}.${REPO}"
else
URL="http://${REF}.${REPO}.${ORG}.docs.jt4d.ru.net"
URL="http://${REF}.${REPO}.${ORG}.jt4d-wiki.ru.net"
S3_PATH="${ORG}.${REPO}.${REF}"
fi
echo "TARGET_URL=$URL" >> $GITHUB_ENV
echo "S3_PATH=${ORG}.${REPO}.${REF}" >> $GITHUB_ENV
echo "S3_PATH=$S3_PATH" >> $GITHUB_ENV
- name: Set docs status pending
shell: bash
@@ -65,6 +67,7 @@ runs:
working-directory: ${{ github.action_path }}/docusaurus
env:
DOCUSERVIX_ON_BROKEN_LINKS: ${{ inputs.on-broken-links }}
DOCUSERVIX_URL: ${{ env.TARGET_URL }}
run: yarn docusaurus build --out-dir ${{ github.workspace }}/generated-docs
- name: Upload to S3
@@ -74,7 +77,7 @@ runs:
AWS_SECRET_ACCESS_KEY: ${{ vars.DOCUSERVIX_S3_SECRET }}
run: |
aws s3 sync generated-docs/ \
s3://${{ vars.DOCUSERVIX_S3_BUCKET }}/docs.${{ env.S3_PATH }}\
s3://${{ vars.DOCUSERVIX_S3_BUCKET }}/${{ env.S3_PATH }}\
--endpoint-url ${{ vars.DOCUSERVIX_S3_URL }} \
--acl public-read \
--delete
-1
View File
@@ -1,5 +1,4 @@
title: "Title example"
url: "https://example.docs.jt4d.ru"
project:
org: "example"
repo: "example"
+2 -2
View File
@@ -7,7 +7,6 @@ import type {NavbarItem} from '@docusaurus/theme-common'
interface DocsConfig {
title: string;
url: string;
project: { org: string; repo: string };
dirs?: { docs?: string; blog?: string };
}
@@ -16,9 +15,10 @@ const docsConfig = yaml.load(fs.readFileSync('./.docuservix.yml', 'utf8')) as Do
const {
title,
url,
} = docsConfig
const url = process.env.DOCUSERVIX_URL;
const {
org,
repo