Skip to content

Commit f4c4dbe

Browse files
authored
Merge pull request #17 from louistrue/docs
Update documentation configuration and enhance GitHub Actions for sit…
2 parents 5dd58a1 + 4d338af commit f4c4dbe

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,29 @@ jobs:
6464

6565
- name: Build Rustdoc
6666
run: cargo doc --no-deps --workspace
67+
continue-on-error: true
6768

6869
- name: Copy Rustdoc to site
70+
if: success() || failure()
6971
run: |
70-
mkdir -p site/api/rust
71-
cp -r target/doc/* site/api/rust/
72+
if [ -d "target/doc" ]; then
73+
mkdir -p site/api/rust
74+
cp -r target/doc/* site/api/rust/
75+
fi
76+
77+
- name: Create .nojekyll file
78+
run: touch site/.nojekyll
79+
80+
- name: Verify site structure
81+
run: |
82+
echo "Site directory contents:"
83+
ls -la site/ | head -20
84+
echo ""
85+
echo "Checking for index.html:"
86+
ls -la site/index.html || echo "index.html not found!"
87+
echo ""
88+
echo "Site directory size:"
89+
du -sh site/
7290
7391
- name: Setup Pages
7492
uses: actions/configure-pages@v4

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ site_author: IFC-Lite Contributors
55
repo_url: https://github.com/louistrue/ifc-lite
66
repo_name: louistrue/ifc-lite
77
edit_uri: edit/main/docs/
8+
use_directory_urls: true
89

910
theme:
1011
name: material

0 commit comments

Comments
 (0)