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
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:

- name: Build the project
run: npm run build

env:
ORAMA_CLOUD_PRIVATE_API_KEY: ${{ secrets.ORAMA_CLOUD_PRIVATE_API_KEY }}
ORAMA_CLOUD_INDEX_ID: ${{ secrets.ORAMA_CLOUD_INDEX_ID }}
ENABLE_ORAMA_CLOUD_DEPLOY: ${{ secrets.ENABLE_ORAMA_CLOUD_DEPLOY }}

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:

- name: Build Docusaurus site
run: npm run build
env:
ORAMA_CLOUD_PRIVATE_API_KEY: ${{ secrets.ORAMA_CLOUD_PRIVATE_API_KEY }}
ORAMA_CLOUD_INDEX_ID: ${{ secrets.ORAMA_CLOUD_INDEX_ID }}
ENABLE_ORAMA_CLOUD_DEPLOY: ${{ secrets.ENABLE_ORAMA_CLOUD_DEPLOY }}

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
39 changes: 27 additions & 12 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
require('dotenv').config();

import {themes as prismThemes} from 'prism-react-renderer';
import { themes as prismThemes } from 'prism-react-renderer';

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

Expand All @@ -23,6 +19,25 @@ const config = {
defaultLocale: 'en',
locales: ['en'],
},
plugins: [
[
"@orama/plugin-docusaurus-v3",
{
analytics: {
enabled: true,
apiKey: process.env.ORAMA_CLOUD_PRIVATE_API_KEY || '',
indexId: process.env.ORAMA_CLOUD_INDEX_ID || '',
deploy: process.env.ENABLE_ORAMA_CLOUD_DEPLOY === 'true',
},
searchbox: {
placeholder: "Search...",
},
searchButton: {
text: "Click here to search..."
}
},
],
],
presets: [
[
'classic',
Expand Down Expand Up @@ -61,9 +76,9 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false
respectPrefersColorScheme: false
},
image: 'img/openPathfinder-social-card.jpg',
navbar: {
Expand All @@ -72,7 +87,7 @@ const config = {
alt: 'OpenPathfinder Logo',
src: 'img/openPathfinder_profile.png',
},
style: 'dark',
style: 'dark',
items: [
{
type: 'docSidebar',
Expand All @@ -82,9 +97,9 @@ const config = {
},
// {to: '/docs/projects/fortSphere', label: 'fortSphere', position: 'left'},
// {to: '/docs/projects/visionBoard', label: 'visionBoard', position: 'left'},
{to: '/blog', label: 'Blog', position: 'left'},
{to: '/contribute', label: 'Contribute', position: 'left'},
{to: '/support', label: 'Support', position: 'left'},
{ to: '/blog', label: 'Blog', position: 'left' },
{ to: '/contribute', label: 'Contribute', position: 'left' },
{ to: '/support', label: 'Support', position: 'left' },
{
href: 'https://github.com/openPathfinder/openpathfinder.com',
label: 'GitHub',
Expand Down
Loading