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: 1 addition & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

- name: Build website
working-directory: gen-docs
run: pnpm gen-api-docs all && pnpm build
run: pnpm gen-api-docs && pnpm build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b6 # v4.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
- name: Build website
run: |
cd gen-docs
pnpm build
pnpm gen-api-docs && pnpm build
9 changes: 0 additions & 9 deletions docs/api/_category_.json

This file was deleted.

22 changes: 22 additions & 0 deletions gen-docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ const config: Config = {
path: '../docs',
editUrl: 'https://github.com/seerr-team/seerr/edit/develop/docs/',
docItemComponent: '@theme/ApiItem',
async sidebarItemsGenerator({
defaultSidebarItemsGenerator,
...args
}) {
const items = await defaultSidebarItemsGenerator(args);
return items.filter(
(item) =>
!(
item.type === 'category' &&
item.label?.toLowerCase() === 'api'
)
);
},
},
pages: false,
theme: {
Expand Down Expand Up @@ -103,6 +116,11 @@ const config: Config = {
src: 'img/logo_full.svg',
},
items: [
{
to: '/api/seerr-api',
label: 'REST API',
position: 'right',
},
{
to: 'blog',
label: 'Blog',
Expand Down Expand Up @@ -130,6 +148,10 @@ const config: Config = {
label: 'Documentation',
to: '/',
},
{
label: 'REST API',
to: '/api/seerr-api',
},
],
},
{
Expand Down
3 changes: 3 additions & 0 deletions gen-docs/sidebars.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
import apiSidebar from '../docs/api/sidebar';

/**
* Creating a sidebar enables you to:
Expand All @@ -13,6 +15,7 @@ import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
documentationSidebar: [{ type: 'autogenerated', dirName: '.' }],
apisidebar: apiSidebar,
Comment thread
fallenbagel marked this conversation as resolved.

// But you can create a sidebar manually
/*
Expand Down
Loading