Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Custom domain & use yarn for doc (#87)
Browse files Browse the repository at this point in the history
* New logo

* New logo
  • Loading branch information
QubitPi authored May 13, 2024
1 parent 7cc108c commit a567364
Show file tree
Hide file tree
Showing 14 changed files with 11,915 additions and 14,644 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ jobs:
- name: Build website
run: yarn build
working-directory: docs
- name: Load CNAME file
run: cp CNAME build
working-directory: docs
- name: Generate Javadoc
run: mvn -B clean javadoc:aggregate
- name: Move Javadoc into documentation directory
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The use and distribution terms for [Athena] are covered by the [Apache License,
</div>

[Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0.html
[Athena]: https://athena.qubitpi.org/
[Athena]: https://qubitpi.github.io/athena/
[Athena Documentation]: https://qubitpi.github.io/athena/

[Discord badge]: https://img.shields.io/discord/1001320502960324658?logo=discord&logoColor=white&style=for-the-badge
Expand Down
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
athena.qubitpi.org
15 changes: 15 additions & 0 deletions docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2024 Jiaqi Liu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
21 changes: 18 additions & 3 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2024 Jiaqi Liu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
Expand All @@ -7,8 +22,8 @@ const config: Config = {
tagline: 'A GraphQL Object Storage Webservice Backed by OpenStack Swift and Hadoop HDFS',
favicon: 'img/favicon.ico',

url: 'https://qubitpi.github.io/',
baseUrl: '/athena',
url: 'https://athena.qubitpi.org',
baseUrl: '/',

organizationName: 'QubitPi',
projectName: 'athena',
Expand Down Expand Up @@ -61,7 +76,7 @@ const config: Config = {
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: "https://qubitpi.github.io/athena/apidocs",
href: "https://athena.qubitpi.org/apidocs",
label: "API",
position: "left",
},
Expand Down
Loading

0 comments on commit a567364

Please sign in to comment.