|
3 | 3 | <img alt="Docs" src="/docs/assets/banner-docs.png" width="100%" /> |
4 | 4 | </a> |
5 | 5 | </p> |
| 6 | + |
6 | 7 | <p align="center"> |
7 | 8 | <a href="https://github.com/suitenumerique/docs/stargazers/"> |
8 | 9 | <img src="https://img.shields.io/github/stars/suitenumerique/docs" alt=""> |
9 | 10 | </a> |
10 | | - <a href='https://github.com/suitenumerique/docs/blob/main/CONTRIBUTING.md'><img alt='PRs Welcome' src='https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=shields'/></a> |
11 | | - <img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/suitenumerique/docs"/> |
12 | | - <img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed/suitenumerique/docs"/> |
| 11 | + <a href="https://github.com/suitenumerique/docs/blob/main/CONTRIBUTING.md"> |
| 12 | + <img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"/> |
| 13 | + </a> |
13 | 14 | <a href="https://github.com/suitenumerique/docs/blob/main/LICENSE"> |
14 | 15 | <img alt="MIT License" src="https://img.shields.io/github/license/suitenumerique/docs"/> |
15 | | - </a> |
| 16 | + </a> |
16 | 17 | </p> |
| 18 | + |
17 | 19 | <p align="center"> |
18 | | - <a href="https://matrix.to/#/#docs-official:matrix.org"> |
19 | | - Chat on Matrix |
20 | | - </a> - <a href="/docs/"> |
21 | | - Documentation |
22 | | - </a> - <a href="#getting-started-"> |
23 | | - Getting started |
24 | | - </a> - <a href="mailto:docs@numerique.gouv.fr"> |
25 | | - Reach out |
26 | | - </a> |
| 20 | + <a href="https://matrix.to/#/#docs-official:matrix.org">Chat on Matrix</a> • |
| 21 | + <a href="/docs/">Documentation</a> • |
| 22 | + <a href="#try-docs">Try Docs</a> • |
| 23 | + <a href="mailto:docs@numerique.gouv.fr">Contact us</a> |
27 | 24 | </p> |
28 | 25 |
|
29 | | -# La Suite Docs : Collaborative Text Editing |
30 | | -Docs, where your notes can become knowledge through live collaboration. |
| 26 | +# La Suite Docs: Collaborative Text Editing |
31 | 27 |
|
32 | | -<img src="/docs/assets/docs_live_collaboration_light.gif" width="100%" align="center"/> |
| 28 | +**Docs, where your notes can become knowledge through live collaboration.** |
33 | 29 |
|
34 | | -## Why use Docs ❓ |
35 | | -Docs is a collaborative text editor designed to address common challenges in knowledge building and sharing. |
| 30 | +Docs is an open-source collaborative editor that helps teams write, organize, and share knowledge together - in real time. |
36 | 31 |
|
37 | | -### Write |
38 | | -* 😌 Get simple, accessible online editing for your team. |
39 | | -* 💅 Create clean documents with beautiful formatting options. |
40 | | -* 🖌️ Focus on your content using either the in-line editor, or [the Markdown syntax](https://www.markdownguide.org/basic-syntax/). |
41 | | -* 🧱 Quickly design your page thanks to the many block types, accessible from the `/` slash commands, as well as keyboard shortcuts. |
42 | | -* 🔌 Write offline! Your edits will be synced once you're back online. |
43 | | -* ✨ Save time thanks to our AI actions, such as rephrasing, summarizing, fixing typos, translating, etc. You can even turn your selected text into a prompt! |
| 32 | + |
44 | 33 |
|
45 | | -### Work together |
46 | | -* 🤝 Enjoy live editing! See your team collaborate in real time. |
47 | | -* 🔒 Keep your information secure thanks to granular access control. Only share with the right people. |
48 | | -* 📑 Export your content in multiple formats (`.odt`, `.docx`, `.pdf`) with customizable templates. |
49 | | -* 📚 Turn your team's collaborative work into organized knowledge with Subpages. |
50 | 34 |
|
51 | | -### Self-host |
| 35 | +## What is Docs? |
52 | 36 |
|
53 | | -#### 🚀 Docs is easy to install on your own servers |
54 | | -We use Kubernetes for our [production instance](https://docs.numerique.gouv.fr/) but also support Docker Compose. The community contributed a couple other methods (Nix, YunoHost etc.) check out the [docs](/docs/installation/README.md) to get detailed instructions and examples. |
| 37 | +Docs is an open-source alternative to tools like Notion or Google Docs, focused on: |
55 | 38 |
|
56 | | -#### 🌍 Known instances |
57 | | -We hope to see many more, here is an incomplete list of public Docs instances. Feel free to make a PR to add ones that are not listed below🙏 |
| 39 | +- Real-time collaboration |
| 40 | +- Clean, structured documents |
| 41 | +- Knowledge organization |
| 42 | +- Data ownership & self-hosting |
58 | 43 |
|
59 | | -| Url | Org | Public | |
60 | | -| --- | --- | ------- | |
61 | | -| [docs.numerique.gouv.fr](https://docs.numerique.gouv.fr/) | DINUM | French public agents working for the central administration and the extended public sphere. ProConnect is required to login in or sign up| |
62 | | -| [docs.suite.anct.gouv.fr](https://docs.suite.anct.gouv.fr/) | ANCT | French public agents working for the territorial administration and the extended public sphere. ProConnect is required to login in or sign up| |
63 | | -| [notes.demo.opendesk.eu](https://notes.demo.opendesk.eu) | ZenDiS | Demo instance of OpenDesk. Request access to get credentials | |
64 | | -| [notes.liiib.re](https://notes.liiib.re/) | lasuite.coop | Free and open demo to all. Content and accounts are reset after one month | |
65 | | -| [docs.federated.nexus](https://docs.federated.nexus/) | federated.nexus | Public instance, but you have to [sign up for a Federated Nexus account](https://federated.nexus/register/). | |
66 | | -| [docs.demo.mosacloud.eu](https://docs.demo.mosacloud.eu/) | mosa.cloud | Demo instance of mosa.cloud, a dutch company providing services around La Suite apps. | |
| 44 | +***Built for public organizations, companies, and open communities.*** |
67 | 45 |
|
68 | | -#### ⚠️ Advanced features |
69 | | -For some advanced features (ex: Export as PDF) Docs relies on XL packages from BlockNote. These are licenced under GPL and are not MIT compatible. You can perfectly use Docs without these packages by setting the environment variable `PUBLISH_AS_MIT` to true. That way you'll build an image of the application without the features that are not MIT compatible. Read the [environment variables documentation](/docs/env.md) for more information. |
| 46 | +## Why use Docs? |
70 | 47 |
|
71 | | -## Getting started 🔧 |
| 48 | +### Writing |
72 | 49 |
|
73 | | -### Test it |
| 50 | +- Rich-text & Markdown editing |
| 51 | +- Slash commands & block system |
| 52 | +- Beautiful formatting |
| 53 | +- Offline editing |
| 54 | +- Optional AI writing helpers (rewirite, summarize, translate, fix typos) |
74 | 55 |
|
75 | | -You can test Docs on your browser by visiting this [demo document](https://docs.la-suite.eu/docs/9137bbb5-3e8a-4ff7-8a36-fcc4e8bd57f4/) |
| 56 | +### Collaboration |
76 | 57 |
|
77 | | -### Run Docs locally |
| 58 | +- Live cursors & presence |
| 59 | +- Comments & sharing |
| 60 | +- Granular access control |
78 | 61 |
|
79 | | -> ⚠️ The methods described below for running Docs locally is **for testing purposes only**. It is based on building Docs using [Minio](https://min.io/) as an S3-compatible storage solution. Of course you can choose any S3-compatible storage solution. |
| 62 | +### Knowledge management |
80 | 63 |
|
81 | | -**Prerequisite** |
| 64 | +- Subpages & hierarchy |
| 65 | +- Searchable content |
82 | 66 |
|
83 | | -Make sure you have a recent version of Docker and [Docker Compose](https://docs.docker.com/compose/install) installed on your laptop, then type: |
| 67 | +### Export/Import & interoperability |
84 | 68 |
|
85 | | -```shellscript |
86 | | -$ docker -v |
| 69 | +- Import to `.docx` and `.md` |
| 70 | +- Export to `.docx`, `.odt`, `.pdf` |
87 | 71 |
|
88 | | -Docker version 20.10.2, build 2291f61 |
| 72 | +## Try Docs |
89 | 73 |
|
90 | | -$ docker compose version |
| 74 | +Experience Docs instantly - no installation required. |
91 | 75 |
|
92 | | -Docker Compose version v2.32.4 |
93 | | -``` |
| 76 | +- 🔗 [Open a live demo document][demo] |
| 77 | +- 🌍 [Browse public instances][instances] |
94 | 78 |
|
95 | | -> ⚠️ You may need to run the following commands with `sudo`, but this can be avoided by adding your user to the local `docker` group. |
| 79 | +[demo]: https://docs.la-suite.eu/docs/9137bbb5-3e8a-4ff7-8a36-fcc4e8bd57f4/ |
| 80 | +[instances]: /docs/instances.md |
96 | 81 |
|
97 | | -**Project bootstrap** |
| 82 | +## Self-hosting |
98 | 83 |
|
99 | | -The easiest way to start working on the project is to use [GNU Make](https://www.gnu.org/software/make/): |
| 84 | +Docs supports Kubernetes, Docker Compose, and community-provided methods such as Nix and YunoHost. |
100 | 85 |
|
101 | | -```shellscript |
102 | | -$ make bootstrap FLUSH_ARGS='--no-input' |
103 | | -``` |
| 86 | +Get started with self-hosting: [Installation guide](/docs/installation/README.md) |
104 | 87 |
|
105 | | -This command builds the `app-dev` and `frontend-dev` containers, installs dependencies, performs database migrations and compiles 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. |
| 88 | +> [!WARNING] |
| 89 | +> Some advanced features (for example: `Export as PDF`) rely on XL packages from Blocknote. |
| 90 | +> These packages are licensed under GPL and are **not MIT-compatible** |
| 91 | +> |
| 92 | +> You can run Docs **without these packages** by building with: |
| 93 | +> |
| 94 | +> ```bash |
| 95 | +> PUBLISH_AS_MIT=true |
| 96 | +> ``` |
| 97 | +> |
| 98 | +> This builds an image of Docs without non-MIT features. |
| 99 | +> |
| 100 | +> More details can be found in [environment variables](/docs/env.md) |
106 | 101 |
|
107 | | -Your Docker services should now be up and running 🎉 |
| 102 | +## Local Development (for contributors) |
108 | 103 |
|
109 | | -You can access the project by going to <http://localhost:3000>. |
| 104 | +Run Docs locally for development and testing. |
110 | 105 |
|
111 | | -You will be prompted to log in. The default credentials are: |
| 106 | +> [!WARNING] |
| 107 | +> This setup is intended **for development and testing only**. |
| 108 | +> It uses Minio as an S3-compatible storage backend, but any S3-compatible service can be used. |
112 | 109 |
|
113 | | -``` |
114 | | -username: impress |
115 | | -password: impress |
116 | | -``` |
| 110 | +### Prerequisites |
| 111 | +
|
| 112 | +- Docker |
| 113 | +- Docker Compose |
| 114 | +- GNU Make |
117 | 115 |
|
118 | | -📝 Note that if you need to run them afterwards, you can use the eponymous Make rule: |
| 116 | +Verify installation: |
119 | 117 |
|
120 | | -```shellscript |
121 | | -$ make run |
| 118 | +```bash |
| 119 | +docker -v |
| 120 | +docker compose version |
122 | 121 | ``` |
123 | 122 |
|
124 | | -⚠️ For the frontend developer, it is often better to run the frontend in development mode locally. |
| 123 | +> If you encounounter permission errors, you may need to use `sudo`, or add your user to the `docker` group. |
125 | 124 |
|
126 | | -To do so, install the frontend dependencies with the following command: |
| 125 | +### Bootstrap the project |
127 | 126 |
|
128 | | -```shellscript |
129 | | -$ make frontend-development-install |
| 127 | +The easiest way to start is using GNU Make: |
| 128 | + |
| 129 | +```bash |
| 130 | +make bootstrap FLUSH_ARGS='--no-input' |
130 | 131 | ``` |
131 | 132 |
|
132 | | -And run the frontend locally in development mode with the following command: |
| 133 | +This builds the `app-dev` and `fronted-dev` containers, installs dependencies, runs database migrations, and compiles translations. |
| 134 | + |
| 135 | +It is recommend to run this command after pulling new code. |
| 136 | + |
| 137 | +Start services: |
133 | 138 |
|
134 | | -```shellscript |
135 | | -$ make run-frontend-development |
| 139 | +```bash |
| 140 | +make run |
136 | 141 | ``` |
137 | 142 |
|
138 | | -To start all the services, except the frontend container, you can use the following command: |
| 143 | +Open <https://localhost:3000> |
139 | 144 |
|
140 | | -```shellscript |
141 | | -$ make run-backend |
| 145 | +Default credentials (development only): |
| 146 | + |
| 147 | +```md |
| 148 | +username: impress |
| 149 | +password: impress |
142 | 150 | ``` |
143 | 151 |
|
144 | | -To execute frontend tests & linting only |
145 | | -```shellscript |
146 | | -$ make frontend-test |
147 | | -$ make frontend-lint |
| 152 | +### Frontend development mode |
| 153 | + |
| 154 | +For frontend work, running outside Docker is often more convenient: |
| 155 | + |
| 156 | +```bash |
| 157 | +make frontend-development-install |
| 158 | +make run-frontend-development |
148 | 159 | ``` |
149 | 160 |
|
150 | | -**Adding content** |
| 161 | +### Backend only |
151 | 162 |
|
152 | | -You can create a basic demo site by running this command: |
| 163 | +Starting all services except the frontend container: |
153 | 164 |
|
154 | | -```shellscript |
155 | | -$ make demo |
| 165 | +```bash |
| 166 | +make run-backend |
156 | 167 | ``` |
157 | 168 |
|
158 | | -Finally, you can check all available Make rules using this command: |
| 169 | +### Tests & Linting |
159 | 170 |
|
160 | | -```shellscript |
161 | | -$ make help |
| 171 | +```bash |
| 172 | +make frontend-test |
| 173 | +make frontend-lint |
162 | 174 | ``` |
163 | 175 |
|
164 | | -**Django admin** |
| 176 | +### Demo content |
| 177 | + |
| 178 | +Create a basic demo site: |
165 | 179 |
|
166 | | -You can access the Django admin site at: |
| 180 | +```bash |
| 181 | +make demo |
| 182 | +``` |
167 | 183 |
|
168 | | -<http://localhost:8071/admin>. |
| 184 | +### More Make targets |
169 | 185 |
|
170 | | -You first need to create a superuser account: |
| 186 | +To check all available Make rules: |
171 | 187 |
|
172 | | -```shellscript |
173 | | -$ make superuser |
| 188 | +```bash |
| 189 | +make help |
174 | 190 | ``` |
175 | 191 |
|
176 | | -## Feedback 🙋♂️🙋♀️ |
| 192 | +### Django admin |
177 | 193 |
|
178 | | -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). |
| 194 | +Create a superuser: |
179 | 195 |
|
180 | | -## Roadmap 💡 |
| 196 | +```bash |
| 197 | +make superuser |
| 198 | +``` |
181 | 199 |
|
182 | | -Want to know where the project is headed? [🗺️ Checkout our roadmap](https://github.com/orgs/numerique-gouv/projects/13/views/11) |
| 200 | +Admin UI: <http://localhost:8071/admin> |
183 | 201 |
|
184 | | -## License 📝 |
| 202 | +## Contributing |
185 | 203 |
|
186 | | -This work is released under the MIT License (see [LICENSE](https://github.com/suitenumerique/docs/blob/main/LICENSE)). |
| 204 | +This project is community-driven and PRs are welcome. |
187 | 205 |
|
188 | | -While Docs is a public-driven initiative, our license choice is an invitation for private sector actors to use, sell and contribute to the project. |
| 206 | +- [Contribution guide](CONTRIBUTING.md) |
| 207 | +- [Translations](https://crowdin.com/project/lasuite-docs) |
| 208 | +- [Chat with us!](https://matrix.to/#/#docs-official:matrix.org) |
189 | 209 |
|
190 | | -## Contributing 🙌 |
| 210 | +## Roadmap |
191 | 211 |
|
192 | | -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. |
| 212 | +Curious where Docs is headed? |
193 | 213 |
|
194 | | -You can help us with translations on [Crowdin](https://crowdin.com/project/lasuite-docs). |
| 214 | +Explore upcoming features, priorities and long-term direction on our [public roadmap](https://docs.numerique.gouv.fr/docs/d1d3788e-c619-41ff-abe8-2d079da2f084/). |
195 | 215 |
|
196 | | -If you intend to make pull requests, see [CONTRIBUTING](https://github.com/suitenumerique/docs/blob/main/CONTRIBUTING.md) for guidelines. |
| 216 | +## License 📝 |
197 | 217 |
|
198 | | -## Directory structure: |
| 218 | +This work is released under the MIT License (see [LICENSE](https://github.com/suitenumerique/docs/blob/main/LICENSE)). |
199 | 219 |
|
200 | | -```markdown |
201 | | -docs |
202 | | -├── bin - executable scripts or binaries that are used for various tasks, such as setup scripts, utility scripts, or custom commands. |
203 | | -├── crowdin - for crowdin translations, a tool or service that helps manage translations for the project. |
204 | | -├── 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. |
205 | | -├── docs - documentation for the project, including user guides, API documentation, and other helpful resources. |
206 | | -├── 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. |
207 | | -├── gitlint - configuration files for `gitlint`, a tool that enforces commit message guidelines to ensure consistency and quality in commit messages. |
208 | | -├── playground - experimental or temporary code, where developers can test new features or ideas without affecting the main codebase. |
209 | | -└── src - main source code directory, containing the core application code, libraries, and modules of the project. |
210 | | -``` |
| 220 | +While Docs is a public-driven initiative, our license choice is an invitation for private sector actors to use, sell and contribute to the project. |
211 | 221 |
|
212 | 222 | ## Credits ❤️ |
213 | 223 |
|
214 | 224 | ### Stack |
215 | 225 |
|
216 | | -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/). We thank the contributors of all these projects for their awesome work! |
| 226 | +Docs is built on top of [Django Rest Framework](https://www.django-rest-framework.org/), [Next.js](https://nextjs.org/), [ProseMirror](https://prosemirror.net/), [BlockNote.js](https://www.blocknotejs.org/), [HocusPocus](https://tiptap.dev/docs/hocuspocus/introduction), and [Yjs](https://yjs.dev/). We thank the contributors of all these projects for their awesome work! |
217 | 227 |
|
218 | | -We are proud sponsors of [BlockNotejs](https://www.blocknotejs.org/) and [Yjs](https://yjs.dev/). |
| 228 | +We are proud sponsors of [BlockNotejs](https://www.blocknotejs.org/) and [Yjs](https://yjs.dev/). |
219 | 229 |
|
| 230 | +--- |
220 | 231 |
|
221 | 232 | ### Gov ❤️ open source |
222 | | -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/)). |
223 | 233 |
|
224 | | -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. |
| 234 | +Docs is the result of a joint initiative led by the French 🇫🇷 ([DINUM](https://www.numerique.gouv.fr/dinum/)) Government and German 🇩🇪 government ([ZenDiS](https://zendis.de/)). |
| 235 | + |
| 236 | +We are always looking for new public partners (we are currently onboarding the Netherlands 🇳🇱), feel free to [contact us](mailto:docs@numerique.gouv.fr) if you are interested in using or contributing to Docs. |
225 | 237 |
|
226 | 238 | <p align="center"> |
227 | | - <img src="/docs/assets/europe_opensource.png" width="50%"/> |
| 239 | + <img src="/docs/assets/europe_opensource.png" width="50%"/ alt="Europe Opensource"> |
228 | 240 | </p> |
0 commit comments