Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,44 +178,46 @@ jobs:
fi
done

- name: Create Jekyll collections
- name: Create Jekyll directory structure
run: |
# Create collection files for Jekyll
# Create directory-based structure that matches navigation expectations

# German collections
mkdir -p _architecture _user-guide _howtos _faq
# Create German index pages
mkdir -p architecture user-guide howtos faq

if [ -f "docs/de/architecture/arc42-documentation.md" ]; then
cp "docs/de/architecture/arc42-documentation.md" "_architecture/arc42-documentation-de.md"
cp "docs/de/architecture/arc42-documentation.md" "architecture/index.md"
fi

if [ -f "docs/de/user-guide/user-guide.md" ]; then
cp "docs/de/user-guide/user-guide.md" "_user-guide/user-guide-de.md"
cp "docs/de/user-guide/user-guide.md" "user-guide/index.md"
fi

if [ -f "docs/de/howtos/import-gps-data.md" ]; then
cp "docs/de/howtos/import-gps-data.md" "_howtos/import-gps-data-de.md"
cp "docs/de/howtos/import-gps-data.md" "howtos/index.md"
fi

if [ -f "docs/de/faq/general-faq.md" ]; then
cp "docs/de/faq/general-faq.md" "_faq/general-faq-de.md"
cp "docs/de/faq/general-faq.md" "faq/index.md"
fi

# English collections
# Create English index pages
mkdir -p en/architecture en/user-guide en/howtos en/faq

if [ -f "docs/en/architecture/arc42-documentation.md" ]; then
cp "docs/en/architecture/arc42-documentation.md" "_architecture/arc42-documentation-en.md"
cp "docs/en/architecture/arc42-documentation.md" "en/architecture/index.md"
fi

if [ -f "docs/en/user-guide/user-guide.md" ]; then
cp "docs/en/user-guide/user-guide.md" "_user-guide/user-guide-en.md"
cp "docs/en/user-guide/user-guide.md" "en/user-guide/index.md"
fi

if [ -f "docs/en/howtos/import-gps-data.md" ]; then
cp "docs/en/howtos/import-gps-data.md" "_howtos/import-gps-data-en.md"
cp "docs/en/howtos/import-gps-data.md" "en/howtos/index.md"
fi

if [ -f "docs/en/faq/general-faq.md" ]; then
cp "docs/en/faq/general-faq.md" "_faq/general-faq-en.md"
cp "docs/en/faq/general-faq.md" "en/faq/index.md"
fi

- name: Setup Pages
Expand All @@ -225,10 +227,12 @@ jobs:
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
destination: ./dist

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist

deploy:
environment:
Expand Down
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Jekyll and Ruby
_site/
dist/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
Expand All @@ -13,6 +13,16 @@ temp.html
docs/de/
docs/en/

# Generated markdown files (should only exist during build)
architecture/index.md
user-guide/index.md
howtos/index.md
faq/index.md
en/architecture/index.md
en/user-guide/index.md
en/howtos/index.md
en/faq/index.md

# Node modules and npm
node_modules/
npm-debug.log*
Expand Down
38 changes: 2 additions & 36 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,13 @@ url: "https://trailmarks-io.github.io"
markdown: kramdown
highlighter: rouge
theme: minima

# Collections for different document types
collections:
architecture:
output: true
permalink: /:collection/:name/
user-guide:
output: true
permalink: /:collection/:name/
howtos:
output: true
permalink: /:collection/:name/
faq:
output: true
permalink: /:collection/:name/
destination: dist

# Default settings
defaults:
- scope:
path: ""
type: "posts"
values:
layout: "post"
- scope:
path: ""
type: "architecture"
values:
layout: "page"
- scope:
path: ""
type: "user-guide"
values:
layout: "page"
- scope:
path: ""
type: "howtos"
values:
layout: "page"
- scope:
path: ""
type: "faq"
type: "pages"
values:
layout: "page"

Expand Down
48 changes: 0 additions & 48 deletions architecture/index.md

This file was deleted.

48 changes: 0 additions & 48 deletions en/architecture/index.md

This file was deleted.

48 changes: 0 additions & 48 deletions en/faq/index.md

This file was deleted.

43 changes: 0 additions & 43 deletions en/howtos/index.md

This file was deleted.

40 changes: 0 additions & 40 deletions en/user-guide/index.md

This file was deleted.

Loading
Loading