Skip to content
Merged
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
2 changes: 0 additions & 2 deletions .env

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/docsearch.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ test:
translations:
npm run docusaurus write-translations

.PHONY: algolia
# Edit your API_KEY in .env before run `make algolia` for the `kcl-lang` index.
algolia:
docker run -it --env-file=.env -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper

# ----------------
# Docker
# ----------------
Expand Down
13 changes: 6 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ const config = {
id: 'announcementBar-1', // Increment on change
content: `Give us a star ⭐️ - If you are using KCL or think it is an interesting project, we would love a star and record on <a target="_blank" rel="noopener noreferrer" href="https://github.com/kcl-lang/kcl">Github</a> and <a target="_blank" rel="noopener noreferrer" href="https://github.com/kcl-lang/kcl/issues/578">Record Issue</a>`,
},

algolia: {
appId: 'I3BKOKGSD5',
apiKey: '20af56a3665effe7fa744b4b6cf78d60',
indexName: 'kcl-lang',
contextualSearch: true,
},
navbar: {
title: 'KCL',
logo: {
Expand Down Expand Up @@ -323,6 +316,12 @@ const config = {
anonymizeIP: true,
},
],
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
language: ["en", "zh"],
},
],
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
Expand Down
Loading