Skip to content

Commit a88d10e

Browse files
committed
feat: Migrate docs to /docs folder and centralize documentation workflow
Move docusaurus project files from docusaurus/ into docs/. Remove old website/ directory. Replace local documentation.yml with centralized caller.
1 parent a4c9540 commit a88d10e

11 files changed

Lines changed: 6 additions & 59 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 5 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,12 @@ name: Documentation
22

33
on:
44
push:
5-
branches:
6-
- development
5+
branches: [documentation]
76
pull_request:
8-
branches:
9-
- development
7+
branches: [documentation]
108

119
jobs:
1210
deploy:
13-
name: Deploy Documentation
14-
runs-on: ubuntu-latest
15-
if: github.event_name == 'push'
16-
permissions:
17-
contents: write
18-
steps:
19-
- uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 0
22-
23-
- name: Setup Node.js 18
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version: '18'
27-
28-
- name: Clear build cache and install dependencies
29-
timeout-minutes: 3
30-
run: |
31-
cd docusaurus
32-
rm -rf node_modules/.cache
33-
rm -rf .docusaurus
34-
rm -rf build
35-
npm run ci
36-
37-
- name: Verify build output
38-
run: |
39-
cd docusaurus/build
40-
if [ ! -f index.html ]; then
41-
echo "ERROR: index.html not found in build directory!"
42-
exit 1
43-
fi
44-
45-
- name: Create .nojekyll and CNAME files
46-
run: |
47-
cd docusaurus/build
48-
touch .nojekyll
49-
echo "softwarecatalog.app" > CNAME
50-
51-
- name: Deploy to GitHub Pages
52-
uses: peaceiris/actions-gh-pages@v3
53-
with:
54-
github_token: ${{ secrets.GITHUB_TOKEN }}
55-
publish_dir: ./docusaurus/build
56-
publish_branch: gh-pages
57-
user_name: 'github-actions[bot]'
58-
user_email: 'github-actions[bot]@users.noreply.github.com'
59-
force_orphan: false
60-
allow_empty_commit: true
61-
keep_files: false
62-
63-
- name: Verify deployment
64-
run: |
65-
git fetch origin gh-pages
66-
echo "Deployment completed. Latest commit: $(git rev-parse origin/gh-pages)"
11+
uses: ConductionNL/.github/.github/workflows/documentation.yml@main
12+
with:
13+
cname: softwarecatalog.app
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const config = {
2525
/** @type {import('@docusaurus/preset-classic').Options} */
2626
({
2727
docs: {
28-
path: '../docs',
28+
path: './',
2929
sidebarPath: require.resolve('./sidebars.js'),
3030
editUrl:
3131
'https://github.com/ConductionNL/softwarecatalog/tree/main/docusaurus/',
File renamed without changes.
File renamed without changes.

docusaurus/src/components/HomepageFeatures/styles.module.css renamed to docs/src/components/HomepageFeatures/styles.module.css

File renamed without changes.

0 commit comments

Comments
 (0)