2025-01-21 23:36:26 +01:00
<p align="center">
<a href="https://github.com/suitenumerique/docs">
2025-01-28 19:41:33 +01:00
<img alt="Docs" src="/docs/assets/docs-logo.png" width="300" />
2025-01-21 23:36:26 +01:00
</a>
</p>
<p align="center">
Welcome to Docs! The open source document editor where your notes can become knowledge through live collaboration
</p>
<p align="center">
<a href="https://matrix.to/#/ #docs -official:matrix.org">
Chat on Matrix
</a> - <a href="/docs/">
Documentation
2025-01-29 21:31:09 +01:00
</a> - <a href="#getting -started-">
2025-01-21 23:36:26 +01:00
Getting started
2025-01-30 16:24:54 +01:00
</a> - <a href="mailto:docs@numerique .gouv.fr">
Reach out
2025-01-21 23:36:26 +01:00
</a>
</p>
<img src="/docs/assets/docs_live_collaboration_light.gif" width="100%" align="center"/>
## Why use Docs ❓
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
Docs is a collaborative text editor designed to address common challenges in knowledge building and sharing.
### Write
* 😌 Simple collaborative editing without the formatting complexity of markdown
* 🔌 Offline? No problem, keep writing, your edits will get synced when back online
* 💅 Create clean documents with limited but beautiful formatting options and focus on content
2025-01-28 19:41:33 +01:00
* 🧱 Built for productivity (markdown support, many block types, slash commands, keyboard shortcuts).
2025-01-21 23:36:26 +01:00
* ✨ Save time thanks to our AI actions (generate, sum up, correct, translate)
### Collaborate
2025-02-14 15:04:45 +01:00
* 🤝 Collaborate with your team in real time
* 🔒 Granular access control to ensure your information is secure and only shared with the right people
2025-01-21 23:36:26 +01:00
* 📑 Professional document exports in multiple formats (.odt, .doc, .pdf) with customizable templates
2025-02-14 15:04:45 +01:00
* 📚 Built-in wiki functionality to turn your team's collaborative work into organized knowledge `ETA 02/2025`
2025-01-21 23:36:26 +01:00
### Self-host
* 🚀 Easy to install, scalable and secure alternative to Notion, Outline or Confluence
## Getting started 🔧
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
### Test it
2025-02-14 15:04:45 +01:00
2025-03-17 17:02:45 +01:00
Test Docs on your browser by logging in on this [environment ](https://impress-preprod.beta.numerique.gouv.fr/ )
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
```
email: test.docs@yopmail .com
password: I'd<3ToTestDocs
```
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
### Run it locally
2025-02-14 15:04:45 +01:00
2025-03-16 18:56:18 +01:00
> ⚠️ Running Docs locally using the methods described below is for testing purposes only. It is based on building Docs using Minio as the S3 storage solution but you can choose any S3 compatible object storage of your choice.
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
**Prerequisite**
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
Make sure you have a recent version of Docker and [Docker Compose ](https://docs.docker.com/compose/install ) installed on your laptop:
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
```shellscript
2024-01-09 15:30:36 +01:00
$ docker -v
2025-01-21 23:36:26 +01:00
Docker version 20.10.2, build 2291f61
2024-01-09 15:30:36 +01:00
2025-02-14 13:10:35 +01:00
$ docker compose version
2024-01-09 15:30:36 +01:00
2025-02-14 13:10:35 +01:00
Docker Compose version v2.32.4
2025-01-21 23:36:26 +01:00
```
2024-01-09 15:30:36 +01:00
2025-01-29 21:31:09 +01:00
> ⚠️ You may need to run the following commands with sudo but this can be avoided by adding your user to the `docker` group.
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
**Project bootstrap**
2025-02-14 15:04:45 +01:00
2025-03-17 13:31:50 -03:00
The easiest way to start working on the project is to use [GNU Make ](https://www.gnu.org/software/make/ ):
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
```shellscript
2024-04-19 12:01:15 +02:00
$ make bootstrap FLUSH_ARGS='--no-input'
2024-01-09 15:30:36 +01:00
```
2025-02-14 15:04:45 +01:00
This command builds the `app` container, installs dependencies, performs database migrations and compile translations. It's a good idea to use this command each time you are pulling code from the project repository to avoid dependency-related or migration-related issues.
2024-09-16 14:25:42 +02:00
Your Docker services should now be up and running 🎉
2025-01-21 23:36:26 +01:00
You can access to the project by going to <http://localhost:3000>.
2024-04-19 12:01:15 +02:00
You will be prompted to log in, the default credentials are:
2025-01-21 23:36:26 +01:00
2025-01-29 21:31:09 +01:00
```
2024-04-19 12:01:15 +02:00
username: impress
password: impress
```
2024-09-16 14:25:42 +02:00
📝 Note that if you need to run them afterwards, you can use the eponym Make rule:
2025-01-21 23:36:26 +01:00
```shellscript
2025-02-14 13:10:35 +01:00
$ make run
2024-09-16 14:25:42 +02:00
```
2025-01-28 19:41:33 +01:00
⚠️ For the frontend developer, it is often better to run the frontend in development mode locally.
2024-04-19 12:01:15 +02:00
2024-09-16 14:25:42 +02:00
To do so, install the frontend dependencies with the following command:
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
```shellscript
2025-02-14 13:10:35 +01:00
$ make frontend-development-install
2024-09-16 14:25:42 +02:00
```
2025-01-21 23:36:26 +01:00
2024-09-16 14:25:42 +02:00
And run the frontend locally in development mode with the following command:
2025-01-21 23:36:26 +01:00
```shellscript
2024-09-16 14:25:42 +02:00
$ make run-frontend-development
```
2024-01-09 15:30:36 +01:00
2024-09-16 14:25:42 +02:00
To start all the services, except the frontend container, you can use the following command:
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
```shellscript
2025-02-14 13:10:35 +01:00
$ make run-backend
2024-01-09 15:30:36 +01:00
```
2025-01-21 23:36:26 +01:00
**Adding content**
2024-01-09 15:30:36 +01:00
You can create a basic demo site by running:
2025-01-21 23:36:26 +01:00
```shellscript
$ make demo
```
2024-01-09 15:30:36 +01:00
Finally, you can check all available Make rules using:
2025-01-21 23:36:26 +01:00
```shellscript
2024-01-09 15:30:36 +01:00
$ make help
```
2025-01-21 23:36:26 +01:00
**Django admin**
2025-02-14 15:04:45 +01:00
2024-01-09 15:30:36 +01:00
You can access the Django admin site at
2025-01-21 23:36:26 +01:00
<http://localhost:8071/admin>.
2024-01-09 15:30:36 +01:00
You first need to create a superuser account:
2025-01-21 23:36:26 +01:00
```shellscript
2024-01-09 15:30:36 +01:00
$ make superuser
```
2025-01-21 23:36:26 +01:00
## Feedback 🙋♂️🙋♀️
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
We'd love to hear your thoughts and hear about your experiments, so come and say hi on [Matrix ](https://matrix.to/#/#docs-official:matrix.org ).
## Roadmap
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
Want to know where the project is headed? [🗺️ Checkout our roadmap ](https://github.com/orgs/numerique-gouv/projects/13/views/11 )
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
## Licence 📝
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
This work is released under the MIT License (see [LICENSE ](https://github.com/suitenumerique/docs/blob/main/LICENSE )).
2025-01-28 19:41:33 +01:00
While Docs is a public driven initiative our licence choice is an invitation for private sector actors to use, sell and contribute to the project.
2025-01-21 23:36:26 +01:00
## Contributing 🙌
2025-02-14 15:04:45 +01:00
2025-01-28 19:41:33 +01:00
This project is intended to be community-driven, so please, do not hesitate to [get in touch ](https://matrix.to/#/#docs-official:matrix.org ) if you have any question related to our implementation or design decisions.
2025-01-21 23:36:26 +01:00
2025-01-28 19:41:33 +01:00
You can help us with translations on [Crowdin ](https://crowdin.com/project/lasuite-docs ).
If you intend to make pull requests see [CONTRIBUTING ](https://github.com/suitenumerique/docs/blob/main/CONTRIBUTING.md ) for guidelines.
2025-01-21 23:36:26 +01:00
Directory structure:
```markdown
docs
├── bin - executable scripts or binaries that are used for various tasks, such as setup scripts, utility scripts, or custom commands.
├── crowdin - for crowdin translations, a tool or service that helps manage translations for the project.
├── docker - Dockerfiles and related configuration files used to build Docker images for the project. These images can be used for development, testing, or production environments.
├── docs - documentation for the project, including user guides, API documentation, and other helpful resources.
├── env.d/development - environment-specific configuration files for the development environment. These files might include environment variables, configuration settings, or other setup files needed for development.
├── gitlint - configuration files for `gitlint` , a tool that enforces commit message guidelines to ensure consistency and quality in commit messages.
├── playground - experimental or temporary code, where developers can test new features or ideas without affecting the main codebase.
└── src - main source code directory, containing the core application code, libraries, and modules of the project.
```
2024-01-09 15:30:36 +01:00
2025-01-21 23:36:26 +01:00
## Credits ❤️
2025-02-14 15:04:45 +01:00
2025-01-21 23:36:26 +01:00
### Stack
2025-02-14 15:04:45 +01:00
Docs is built on top of [Django Rest Framework ](https://www.django-rest-framework.org/ ), [Next.js ](https://nextjs.org/ ), [BlockNote.js ](https://www.blocknotejs.org/ ), [HocusPocus ](https://tiptap.dev/docs/hocuspocus/introduction ) and [Yjs ](https://yjs.dev/ ).
2025-01-28 19:41:33 +01:00
### Gov ❤️ open source
2025-02-14 15:04:45 +01:00
2025-01-29 21:31:09 +01:00
Docs is the result of a joint effort led by the French 🇫🇷🥖 ([DINUM ](https://www.numerique.gouv.fr/dinum/ )) and German 🇩🇪🥨 governments ([ZenDiS ](https://zendis.de/ )).
2025-01-28 19:41:33 +01:00
We are proud sponsors of [BlockNotejs ](https://www.blocknotejs.org/ ) and [Yjs ](https://yjs.dev/ ).
2024-01-09 15:30:36 +01:00
2025-01-30 16:24:54 +01:00
We are always looking for new public partners (we are currently onboarding the Netherlands 🇳🇱🧀), feel free to [reach out ](mailto:docs@numerique.gouv.fr ) if you are interested in using or contributing to Docs.
2025-01-28 19:41:33 +01:00
<p align="center">
2025-01-29 09:46:21 +01:00
<img src="/docs/assets/europe_opensource.png" width="50%"/>
</p>