文档——Notion或Outline的开源替代方案
Docs – Open source alternative to Notion or Outline

原始链接: https://github.com/suitenumerique/docs

Docs是一款开源的协同文本编辑器,旨在用于知识构建和共享,可替代Notion、Outline或Confluence。它具有实时协作、离线功能、简洁的格式以及诸如Markdown支持、AI功能(生成、摘要、校正、翻译)和细粒度的访问控制等专注于生产力的特性。 主要功能包括多种格式的文档导出、内置Wiki功能和使用Docker的简易安装流程。Docs基于Django Rest Framework、Next.js、BlockNote.js、HocusPocus和Yjs构建。 要开始使用,请使用`make bootstrap`构建应用程序容器并安装依赖项。前端开发者可以使用`make frontend-development-install`和`make run-frontend-development`进行本地开发。 Docs鼓励社区参与,通过Matrix、Crowdin翻译和遵循CONTRIBUTING指南的Pull Request。该项目欢迎公共合作伙伴,并提供MIT许可证以促进使用和贡献。Docs是法国和德国政府牵头共同努力的成果。

法国和德国政府合作开发了Docs,一个开源的Notion和Outline替代方案。许多Hacker News用户对政府资助的开源解决方案表示热情,认为这是逃离大型科技公司“围墙花园”的一种方式。用户们讨论了该项目在解决供应商锁定、促进数字自主权以及为获得更好的软件交易提供筹码方面的潜力。一些人对项目的长期维护以及政府项目是否会扼杀创新表示担忧。另一些人则为该项目辩护,称其具有潜在的成本节约、增强的安全性以及鼓励私营部门贡献的优势。一些讨论集中在Notion与其他笔记和协作工具(包括Obsidian、AppFlowy和Google Docs)的优缺点比较上。Docs团队一直在积极回应反馈,特别是关于语言支持和功能请求方面的反馈。

原文

Docs

Welcome to Docs! The open source document editor where your notes can become knowledge through live collaboration

Chat on Matrix - Documentation - Getting started - Reach out

Docs is a collaborative text editor designed to address common challenges in knowledge building and sharing.

  • 😌 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
  • 🧱 Built for productivity (markdown support, many block types, slash commands, keyboard shortcuts).
  • ✨ Save time thanks to our AI actions (generate, sum up, correct, translate)
  • 🤝 Collaborate with your team in real time
  • 🔒 Granular access control to ensure your information is secure and only shared with the right people
  • 📑 Professional document exports in multiple formats (.odt, .doc, .pdf) with customizable templates
  • 📚 Built-in wiki functionality to turn your team's collaborative work into organized knowledge ETA 02/2025
  • 🚀 Easy to install, scalable and secure alternative to Notion, Outline or Confluence

Test Docs on your browser by logging in on this environment

email: [email protected]
password: I'd<3ToTestDocs

⚠️ 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.

Prerequisite

Make sure you have a recent version of Docker and Docker Compose installed on your laptop:

$ docker -v

Docker version 20.10.2, build 2291f61

$ docker compose version

Docker Compose version v2.32.4

⚠️ You may need to run the following commands with sudo but this can be avoided by adding your user to the docker group.

Project bootstrap

The easiest way to start working on the project is to use GNU Make:

$ make bootstrap FLUSH_ARGS='--no-input'

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.

Your Docker services should now be up and running 🎉

You can access to the project by going to http://localhost:3000.

You will be prompted to log in, the default credentials are:

username: impress
password: impress

📝 Note that if you need to run them afterwards, you can use the eponym Make rule:

⚠️ For the frontend developer, it is often better to run the frontend in development mode locally.

To do so, install the frontend dependencies with the following command:

$ make frontend-development-install

And run the frontend locally in development mode with the following command:

$ make run-frontend-development

To start all the services, except the frontend container, you can use the following command:

Adding content You can create a basic demo site by running:

Finally, you can check all available Make rules using:

Django admin

You can access the Django admin site at

http://localhost:8071/admin.

You first need to create a superuser account:

Feedback 🙋‍♂️🙋‍♀️

We'd love to hear your thoughts and hear about your experiments, so come and say hi on Matrix.

Want to know where the project is headed? 🗺️ Checkout our roadmap

This work is released under the MIT License (see LICENSE).

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.

This project is intended to be community-driven, so please, do not hesitate to get in touch if you have any question related to our implementation or design decisions.

You can help us with translations on Crowdin.

If you intend to make pull requests see CONTRIBUTING for guidelines.

Directory structure:

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.

Docs is built on top of Django Rest Framework, Next.js, BlockNote.js, HocusPocus and Yjs.

Docs is the result of a joint effort led by the French 🇫🇷🥖 (DINUM) and German 🇩🇪🥨 governments (ZenDiS).

We are proud sponsors of BlockNotejs and Yjs.

We are always looking for new public partners (we are currently onboarding the Netherlands 🇳🇱🧀), feel free to reach out if you are interested in using or contributing to Docs.

联系我们 contact @ memedata.com