This project is built using Docusaurus with multi-language support and the docusaurus-lunr-search plugin for search functionality.
git clone <your-repo-url>
cd <your-repo-name>yarn install
# or
npm installTo start the project with the default language:
yarn start
# or
npm run startIf you are using multiple languages and want to run only one language, use:
yarn start --locale <language-code>
# Example:
yarn start --locale enModify docusaurus.config.js to enable internationalization (i18n):
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr', 'es'], // Add your languages here
localeConfigs: {
en: { label: 'English' },
fr: { label: 'Français' },
es: { label: 'Español' },
},
},
};Install the search plugin:
yarn add docusaurus-lunr-search
# or
npm install docusaurus-lunr-searchModify docusaurus.config.js to include the plugin:
module.exports = {
plugins: [
[require.resolve("@cmfcmf/docusaurus-search-local"), {
indexDocs: true,
indexBlog: true,
indexPages: true,
language: ["en", "fr", "es"],
}],
],
};To use Lunr search locally, build the search index:
yarn build
yarn serve
# or
npm run build
npm run serveYou can deploy your Docusaurus site to GitHub Pages, Vercel, Netlify, or any static hosting provider. Follow the official deployment guide.
This project is licensed under the MIT License.