Skip to content
Open
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
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ cd "${0%/*}"
rm -rf public/

hugo --minify

# Rename slug/index.md → slug.md to match the clean .md URL convention.
# Only processes directories that also contain an index.html, so section
# indexes and other non-page artifacts are left untouched.
find public -mindepth 2 -name "index.md" | while IFS= read -r f; do
dir=$(dirname "$f")
if [ -f "$dir/index.html" ]; then
mv "$f" "$(dirname "$dir")/$(basename "$dir").md"
fi
done
38 changes: 34 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,32 @@ params:
imaging:
resampleFilter: linear
quality: 90
outputFormats:
MarkdownPage:
mediaType: text/markdown
baseName: index
isPlainText: true
notAlternative: true
LLMSTxt:
mediaType: text/plain
baseName: llms
isPlainText: true
notAlternative: true
LLMSFull:
mediaType: text/plain
baseName: llms-full
isPlainText: true
notAlternative: true
outputs:
home:
- HTML
- RSS
- JSON
home:
- HTML
- RSS
- JSON
- LLMSTxt
- LLMSFull
page:
- HTML
- MarkdownPage
buildDrafts: true
defaultContentLanguage: en
disable404: true
Expand Down Expand Up @@ -223,6 +244,9 @@ menu:
hide: true

mediaTypes:
text/markdown:
suffixes:
- md
video/mp4:
suffixes:
- mp4
Expand Down Expand Up @@ -261,6 +285,12 @@ deployment:
- pattern: '^.+\\.xml$'
contentType: 'application/rss+xml; charset=utf-8'
gzip: true
- pattern: '^.+\\.md$'
contentType: 'text/markdown; charset=utf-8'
gzip: true
- pattern: '^llms.*\\.txt$'
contentType: 'text/plain; charset=utf-8'
gzip: true

markup:
goldmark:
Expand Down
1 change: 1 addition & 0 deletions layouts/404.markdownpage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 404 - Page Not Found
16 changes: 16 additions & 0 deletions layouts/_default/index.llmsfull.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- range .Site.RegularPages }}
================================================================================
source: {{ .Permalink }}
title: {{ .Title }}
{{ with .Params.description -}}
description: {{ . }}
{{ end -}}
last_modified: {{ .Lastmod.Format "2006-01-02" }}
================================================================================

# {{ .Title }}
{{ with .Params.description }}
> {{ . }}
{{ end }}
{{ .RawContent }}
{{ end -}}
21 changes: 21 additions & 0 deletions layouts/_default/index.llmstxt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Codemagic Docs

> Codemagic is a CI/CD platform for building, testing, signing, and publishing
> Android, iOS, Flutter, and React Native mobile apps. Pipelines are configured
> via a codemagic.yaml file committed to your repository.
>
> In addition to CI/CD, Codemagic offers CodePush: a separate Over-the-Air (OTA)
> update service specifically for React Native. CodePush allows developers to deploy
> instant JavaScript and asset updates directly to users, bypassing the standard app
> store review process for non-native changes.

## Optional

- [Complete documentation]({{ absURL "llms-full.txt" }}): Every documentation page concatenated into a single file for full-context retrieval

## Documentation
{{ range .Site.RegularPages.GroupBy "Section" }}
### {{ .Key }}
{{ range .Pages }}
- [{{ .Title }}]({{ .Permalink | strings.TrimSuffix "/" }}.md){{ with .Params.description }}: {{ . }}{{ end }}
{{ end }}{{ end }}
9 changes: 9 additions & 0 deletions layouts/_default/single.markdownpage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- $lastmod := .Lastmod.Format "2006-01-02" -}}
<!-- source: {{ .Permalink }} -->
<!-- last modified: {{ $lastmod }} -->

# {{ .Title }}
{{ with .Params.description }}
> {{ . }}
{{ end }}
{{ .RawContent -}}