https://github.com/garronej/nextra-dsfr-demo
A demo project for nextra-theme-dsfr-docs
https://github.com/garronej/nextra-dsfr-demo
dsfr nextra react theme
Last synced: 23 days ago
JSON representation
A demo project for nextra-theme-dsfr-docs
- Host: GitHub
- URL: https://github.com/garronej/nextra-dsfr-demo
- Owner: garronej
- License: mit
- Created: 2023-06-28T12:09:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-17T16:43:19.000Z (over 1 year ago)
- Last Synced: 2025-05-07T03:44:36.266Z (23 days ago)
- Topics: dsfr, nextra, react, theme
- Language: TypeScript
- Homepage: https://nextra.react-dsfr.fr
- Size: 1.1 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nextra Docs Template
This is a template for creating documentation with [Nextra](https://nextra.site) using the [DSFR theme](https://github.com/codegouvfr/react-dsfr).
[**Live Demo →**](https://nextra.react-dsfr.fr)
## Local Development
```bash
git clone https://github.com/garronej/nextra-dsfr-demo
cd nextra-dsfr-demo
yarn
yarn dev
```## Experimenting with the default theme
If you want to put `console.log()` in the default documentation theme (`nextra-theme-docs`)
for understanding how nextra work:To experiment with the default `nextra-theme-docs`:
```bash
cd ~/github
git clone https://github.com/shuding/nextra
cd nextra
pnpm install
cd packages/nextra-theme-docs
pnpm dev# Open a new terminal
cd ~/github
git clone https://github.com/garronej/nextra-dsfr-demo
cd nextra-dsfr-demo
# Edit next.config.js to have "theme": "nextra-theme-docs" (Instead of nextra-theme-dsfr)
yarn
yarn add nextra-theme-docs
rm -rf .next && rm -rf node_modules/nextra-theme-docs/dist && cp -r ../nextra/packages/nextra-theme-docs/dist node_modules/nextra-theme-docs/dist && yarn dev# Each time you change the sources of ../nextra/packages/nextra-theme-docs/src/* you must re-run
# the last command.
```## License
This project is licensed under the MIT License.