Skip to content

Commit

Permalink
Feat/add docs search (#19)
Browse files Browse the repository at this point in the history
* feat(): enable search on docs

* feat(): add title template instead of repeat "- Boros"
  • Loading branch information
mduthey authored Feb 10, 2025
1 parent 4c0ed45 commit e5ed414
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 10 deletions.
4 changes: 3 additions & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

# Ignore all .env files except .env.example
.env*
!.env.example
!.env.example

public/_pagefind
1 change: 1 addition & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ FROM dependencies-env
COPY ./package.json ./pnpm-lock.yaml /app/
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
COPY --from=build-env /app/.next /app/.next
COPY --from=build-env /app/public /app/public
WORKDIR /app
EXPOSE 3000
CMD ["pnpm", "start"]
2 changes: 1 addition & 1 deletion docs/app/configuration/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Configuration - Boros
title: Configuration
sidebarTitle: Configuration
asIndexPage: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/app/design/adrs/001-pipeline/page.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Pipeline - Boros Docs
title: Pipeline
sidebarTitle: Pipeline
---

Expand Down
2 changes: 1 addition & 1 deletion docs/app/design/adrs/002-entry-point/page.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Entry point - Boros Docs
title: Entry point
sidebarTitle: Entry point
---

Expand Down
2 changes: 1 addition & 1 deletion docs/app/design/adrs/003-storage/page.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Storage - Boros Docs
title: Storage
sidebarTitle: Storage
---

Expand Down
2 changes: 1 addition & 1 deletion docs/app/design/adrs/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Design Adrs - Boros Docs
title: Design Adrs
sidebarTitle: Adrs
asIndexPage: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/app/design/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Design - Boros
title: Design
sidebarTitle: Design
asIndexPage: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/app/installation/docker/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Docker - Boros
title: Docker
sidebarTitle: Docker
asIndexPage: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/app/installation/from_source/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: From Source - Boros
title: From Source
sidebarTitle: From Source
asIndexPage: true
---
Expand Down
3 changes: 3 additions & 0 deletions docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import 'nextra-theme-docs/style.css';
export const metadata = {
// Define your metadata here
// For more information on metadata API, see: https://nextjs.org/docs/app/building-your-application/optimizing/metadata
title: {
template: '%s - Boros',
},
};

const banner = (
Expand Down
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"start": "next start",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"lint:fix": "eslint . --fix",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind"
},
"keywords": [],
"author": "",
Expand All @@ -32,6 +33,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react-hooks": "^5.1.0",
"globals": "^15.14.0",
"pagefind": "^1.3.0",
"typescript": "5.7.3"
}
}
55 changes: 55 additions & 0 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5ed414

Please sign in to comment.