Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation site #24

Merged
merged 17 commits into from
Aug 4, 2024
Merged

Conversation

MFarabi619
Copy link
Member

@MFarabi619 MFarabi619 commented Aug 3, 2024

If you want to be swept off your feet, navigate to localhost:8000/docs.

This is my custom implementation of the Fumadocs framework. I haven't found any other implementation that contains the top navbar as implemented here. I've also fixed various bugs still lurking in the APIs.

Key features

  • Logo + Favicon
  • Theme switcher
  • Icons and Emojis for eye candy

image

  • Dynamic Table of contents
  • Edit on GitHub button for quick and easy doc fix PRs
  • Top header with hyperlinks to our landing page, and hacker portal
  • Very performant search functionality

image

  • Dropdown that allows for easy navigation
  • Very high quality docs content, fully hand-written

image
image
image
image

  • Sidebar can be toggled off

image

  • Last Updated info in footer

image

  • Did I mention that it's even fully responsive? 😱

image
image

@MFarabi619 MFarabi619 self-assigned this Aug 3, 2024
@MFarabi619 MFarabi619 linked an issue Aug 3, 2024 that may be closed by this pull request
@MFarabi619 MFarabi619 force-pushed the mfarabi/feat/23-add-documentation-site branch 4 times, most recently from 7425d10 to 3f1e49d Compare August 3, 2024 03:27
@MFarabi619 MFarabi619 enabled auto-merge (rebase) August 3, 2024 03:31
@MFarabi619 MFarabi619 force-pushed the mfarabi/feat/23-add-documentation-site branch from 3f1e49d to fd4dc79 Compare August 3, 2024 04:32
@MFarabi619 MFarabi619 force-pushed the mfarabi/feat/23-add-documentation-site branch from fd4dc79 to 21dcd6d Compare August 3, 2024 13:31
HasithDeAlwis
HasithDeAlwis previously approved these changes Aug 3, 2024
src/app/api/search/route.ts Show resolved Hide resolved
@@ -0,0 +1,4 @@
/** Auto-generated */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is generated at build time. It essentially creates a 'map', as per the file name, of all the docs pages so that they can be looped through by the loader and rendered.

@@ -0,0 +1,4 @@
/** Auto-generated */
declare const map: Record<string, unknown>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do all these files have to be in the root dir?

Am a big fan of a clean root dir.

@@ -0,0 +1,29 @@
import type { MDXComponents } from 'mdx/types'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are MDX components. MDX is essentially markdown supercharged with JSX, allowing us to use React components in our docs.

Copy link
Collaborator

@JowiAoun JowiAoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on my end

@MFarabi619 MFarabi619 merged commit 40bdeb4 into master Aug 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT. IMPROVEMENT] Add documentation site
4 participants