Skip to content

Commit e575053

Browse files
author
pixelead0
committed
Update CI workflows to include the --use-directory-urls option for MkDocs build and serve commands, enhancing link resolution and site navigation.
1 parent 3513219 commit e575053

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
uses: pre-commit/[email protected]
3131

3232
- name: Build with MkDocs
33-
run: mkdocs build
33+
run: mkdocs build --use-directory-urls
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636

3737
- name: Check for broken links
3838
run: |
3939
# Iniciar mkdocs serve en background (mejor que python -m http.server)
40-
mkdocs serve -a 127.0.0.1:8000 &
40+
mkdocs serve -a 127.0.0.1:8000 --use-directory-urls &
4141
sleep 15 # Dar más tiempo para que mkdocs serve esté listo
4242
4343
# Ejecutar check de links

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
pip install -r requirements.txt
3131
3232
- name: Build MkDocs site
33-
run: mkdocs build --strict
33+
run: mkdocs build --strict --use-directory-urls
3434

3535
- name: Upload Pages artifact
3636
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)