55a504e33a
This should solve #23. This is a fully static search implementation powered by [Pagefind](https://pagefind.app/). In terms of UI, I found and implemented a section in the sidebar for searching the documentation. It was hidden presumably waiting for implementation. It mentioned using the slash (/) key for searching, so I implemented the hotkey as well. I made the indexing command required by Pagefind run after Eleventy finishes building using the `.after` hook. Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/370 Co-authored-by: oatbiscuits <oatbiscuits@noreply.codeberg.org> Co-committed-by: oatbiscuits <oatbiscuits@noreply.codeberg.org>
21 lines
716 B
JSON
21 lines
716 B
JSON
{
|
|
"name": "codeberg-docs",
|
|
"description": "The documentation site for Codeberg",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "rm -rf _site/ && eleventy",
|
|
"deploy": "./deploy.sh git@codeberg.org:docs/pages.git",
|
|
"deploytest": "ELEVENTY_ENV=testing ./deploy.sh git@codeberg-test.org:docs/pages.git",
|
|
"serve": "eleventy --serve"
|
|
},
|
|
"devDependencies": {
|
|
"@11ty/eleventy": "^2.0.1",
|
|
"@11ty/eleventy-navigation": "^0.3.5",
|
|
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
|
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
"@toycode/markdown-it-class": "^1.2.4",
|
|
"markdown-it-anchor": "^8.6.7",
|
|
"pagefind": "^1.0.4"
|
|
}
|
|
}
|