diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 8f3bb1507..c338f3fbb 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -72,6 +72,9 @@ jobs: - name: Build documentations working-directory: docs run: yarn build + - name: Load CNAME file + if: github.ref == 'refs/heads/master' + run: cp CNAME build - name: Generate Javadoc run: mvn -B clean verify javadoc:aggregate - name: Move Javadoc into documentation directory diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 000000000..9dbe3ee7b --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +athena.paion-data.dev \ No newline at end of file diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index b5d733bc8..43f256a90 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -7,23 +7,15 @@ const config: Config = { tagline: 'A GraphQL Object Storage Webservice Backed by OpenStack Swift and Ali OSS', favicon: 'img/favicon.ico', - // Set the production url of your site here - url: 'https://paion-data.github.io/', - // Set the // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - baseUrl: '/athena/', + url: 'https://athena.paion-data.dev/', + baseUrl: '/', - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - organizationName: 'paion-data', // Usually your GitHub org/user name. - projectName: 'athena', // Usually your repo name. + organizationName: 'paion-data', + projectName: 'athena', onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', - // Even if you don't use internationalization, you can use this field to set - // useful metadata like html lang. For example, if your site is Chinese, you - // may want to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', locales: ['en'],