Skip to content

Commit 87090d1

Browse files
p1c2uCopilot
andcommitted
Pagefind smoke
Co-authored-by: Copilot <copilot@github.com>
1 parent 9a2978e commit 87090d1

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ build:
1313
os: ubuntu-24.04
1414
tools:
1515
python: "3.12"
16+
nodejs: "20"
1617
jobs:
1718
post_system_dependencies:
1819
- asdf plugin-add poetry
1920
- asdf install poetry 2.2.1
2021
- asdf global poetry 2.2.1
2122
post_install:
2223
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --no-interaction --with docs
24+
post_build:
25+
- poetry run make docs-publish
26+
- mkdir -p $READTHEDOCS_OUTPUT/html && cp -r docs_build/* $READTHEDOCS_OUTPUT/html/

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ test-cleanup: test-cache-cleanup reports-cleanup
3434
docs-html:
3535
python -m mkdocs build --clean --site-dir docs_build --config-file mkdocs.yml
3636

37+
docs-pagefind: docs-html
38+
@npx --yes pagefind --site docs_build
39+
40+
docs-manifest:
41+
@cp docs/manifest.json docs_build/manifest.json
42+
43+
docs-publish: docs-html docs-pagefind docs-manifest
44+
3745
docs-cleanup:
3846
@rm -rf docs_build
3947

docs/manifest.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"manifestVersion": 1,
3+
"projectSlug": "openapi-core",
4+
"displayName": "openapi-core",
5+
"themeContractVersion": 1,
6+
"latestStableVersion": "0.23.1",
7+
"routes": {
8+
"publicProjectPath": "/openapi-core",
9+
"latestDocsPath": "/openapi-core/docs/",
10+
"versionedDocsPrefix": "/openapi-core/docs/"
11+
},
12+
"versions": [
13+
{
14+
"version": "0.23.1",
15+
"label": "0.23.1",
16+
"channel": "stable",
17+
"isLatestStable": true,
18+
"publicBasePath": "/openapi-core/docs/0.23.1/",
19+
"originUrl": "https://docs-origin.example.com/openapi-core/0.23.1/",
20+
"sitemapUrl": "https://docs-origin.example.com/openapi-core/0.23.1/sitemap.xml",
21+
"searchBundleUrl": "https://docs-origin.example.com/openapi-core/0.23.1/pagefind/",
22+
"publishedAt": "2026-04-29T00:00:00Z"
23+
},
24+
{
25+
"version": "next",
26+
"label": "next",
27+
"channel": "next",
28+
"isLatestStable": false,
29+
"publicBasePath": "/openapi-core/docs/next/",
30+
"originUrl": "https://docs-origin.example.com/openapi-core/next/",
31+
"sitemapUrl": "https://docs-origin.example.com/openapi-core/next/sitemap.xml",
32+
"searchBundleUrl": "https://docs-origin.example.com/openapi-core/next/pagefind/",
33+
"publishedAt": "2026-04-29T00:00:00Z"
34+
}
35+
]
36+
}

0 commit comments

Comments
 (0)