Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
hossam1231 committed Oct 31, 2023
1 parent 4a05289 commit 344fe5c
Show file tree
Hide file tree
Showing 182 changed files with 14,788 additions and 5,733 deletions.
Binary file modified .DS_Store
Binary file not shown.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Primer
# Protocol

Primer is a [Tailwind UI](https://tailwindui.com) site template built using [Tailwind CSS](https://tailwindcss.com) and [Next.js](https://nextjs.org).
Protocol is a [Tailwind UI](https://tailwindui.com) site template built using [Tailwind CSS](https://tailwindcss.com) and [Next.js](https://nextjs.org).

## Getting started

Expand All @@ -22,6 +22,12 @@ Finally, open [http://localhost:3000](http://localhost:3000) in your browser to

You can start editing this template by modifying the files in the `/src` folder. The site will auto-update as you edit these files.

## Global search

This template includes a global search that's powered by the [FlexSearch](https://github.com/nextapps-de/flexsearch) library. It's available by clicking the search input or by using the `⌘K` shortcut.

This feature requires no configuration, and works out of the box by automatically scanning your documentation pages to build its index. You can adjust the search parameters by editing the `/src/mdx/search.mjs` file.

## License

This site template is a commercial product and is licensed under the [Tailwind UI license](https://tailwindui.com/license).
Expand All @@ -33,3 +39,8 @@ To learn more about the technologies used in this site template, see the followi
- [Tailwind CSS](https://tailwindcss.com/docs) - the official Tailwind CSS documentation
- [Next.js](https://nextjs.org/docs) - the official Next.js documentation
- [Headless UI](https://headlessui.dev) - the official Headless UI documentation
- [Framer Motion](https://www.framer.com/docs/) - the official Framer Motion documentation
- [MDX](https://mdxjs.com/) - the official MDX documentation
- [Algolia Autocomplete](https://www.algolia.com/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete/) - the official Algolia Autocomplete documentation
- [FlexSearch](https://github.com/nextapps-de/flexsearch) - the official FlexSearch documentation
- [Zustand](https://docs.pmnd.rs/zustand/getting-started/introduction) - the official Zustand documentation
10 changes: 0 additions & 10 deletions firebase.json

This file was deleted.

Binary file removed fonts/Agrandir-WideBlackItalic.otf
Binary file not shown.
9 changes: 9 additions & 0 deletions mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as mdxComponents from '@/components/mdx'
import { type MDXComponents } from 'mdx/types'

export function useMDXComponents(components: MDXComponents) {
return {
...components,
...mdxComponents,
}
}
8 changes: 0 additions & 8 deletions next.config.js

This file was deleted.

21 changes: 21 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import nextMDX from '@next/mdx'

import { recmaPlugins } from './src/mdx/recma.mjs'
import { rehypePlugins } from './src/mdx/rehype.mjs'
import { remarkPlugins } from './src/mdx/remark.mjs'
import withSearch from './src/mdx/search.mjs'

const withMDX = nextMDX({
options: {
remarkPlugins,
rehypePlugins,
recmaPlugins,
},
})

/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
}

export default withSearch(withMDX(nextConfig))
1 change: 0 additions & 1 deletion out/404.html

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/7mwGexRylXsyZZa36StHE/_buildManifest.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/7mwGexRylXsyZZa36StHE/_ssgManifest.js

This file was deleted.

25 changes: 0 additions & 25 deletions out/_next/static/chunks/596-fcc1905c93f1ec9d.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/685-4cfffbdf372332f1.js

This file was deleted.

Loading

0 comments on commit 344fe5c

Please sign in to comment.