1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-18 20:59:42 +02:00
Application de documentation gratuite, basé sur l'écosystème Editor.js offrant toutes les opportunités modernes pour travailler avec du contenu. https://codex.so
Find a file
Taly 213f9d89a3
Table of content (#199)
* Create nodemon.json

* Add table of content

* update view

* remove logs

* update tags var

* update layout

* Revert "update layout"

This reverts commit 18aad62257.

* update layout

* Update layout.pcss

* update from master

* Update sidebar.twig

* remove non valued changes

* Update table-of-content.js

* Update table-of-content.pcss

* Update table-of-content.pcss

* Update layout.pcss

* Update table-of-content.js

* remove unused styles

* not module

* rename var

* remove log

* update structure

* Update table-of-content.js

* Update table-of-content.js

* Update layout.pcss

* Update table-of-content.js

* try not to use intersection observer

* Update table-of-content.js

* fix scroll padding

* fix header component layout

* update logic

* fix click area

* Update table-of-content.js

* Update table-of-content.js

* small fixes

* remove unused

* Update table-of-content.js

* Update decorators.js

* Update table-of-content.js

* Update table-of-content.js

* Update table-of-content.js

* Update table-of-content.js

* Update table-of-content.js

* fix scroll issues, resolve eslit ts/js conflicts

* add some todos

* handle up-direction scroll as well

* optimization

* update offsets

* Update header.pcss

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-07-26 18:49:30 +03:00
.github update actions versions (#217) 2022-07-22 21:58:14 +08:00
config Added ability to use custom favicon (#202) 2022-07-10 15:21:32 +03:00
docker First run improvements (improved DX and docs) (#169) 2022-04-12 11:29:25 +04:00
public Docker image optimization (#150) 2022-03-06 13:37:06 +04:00
src Table of content (#199) 2022-07-26 18:49:30 +03:00
.codexdocsrc.sample Change list of menus and add hover effect of menu (#189) 2022-06-02 23:57:07 +09:00
.dockerignore Docker image optimization (#150) 2022-03-06 13:37:06 +04:00
.editorconfig Page model (#1) 2018-08-17 13:58:44 +03:00
.env.sample Feat/hawk integration (#210) 2022-07-26 09:56:20 +05:30
.eslintignore Frontent build system is ready (#3) 2018-09-07 19:24:09 +03:00
.gitignore Docker image optimization (#150) 2022-03-06 13:37:06 +04:00
.nvmrc Typescript rewrite (#147) 2022-03-05 22:57:23 +04:00
.postcssrc Upgrade packages (#149) 2022-03-06 11:38:59 +04:00
docker-compose.yml Password from env variable (#170) 2022-04-24 16:54:36 +05:30
LICENSE Create LICENSE (#159) 2022-03-25 16:33:41 +04:00
nodemon.json Table of content (#199) 2022-07-26 18:49:30 +03:00
package-lock.json Bump terser from 5.12.1 to 5.14.2 (#216) 2022-07-20 10:32:40 +03:00
package.json Feat/hawk integration (#210) 2022-07-26 09:56:20 +05:30
README.md Added ability to use custom favicon (#202) 2022-07-10 15:21:32 +03:00
tsconfig.json Fix docker image build on apple silicon (#165) 2022-04-06 23:46:59 +04:00
webpack.config.js Update document editor styles (#180) (#191) 2022-07-12 00:11:08 +09:00
yarn.lock Table of content (#199) 2022-07-26 18:49:30 +03:00

CodeX Docs

CodeX Docs is a simple but powerful documentation engine for CodeX powered with Editor.js.

You can use CodeX Docs for product documentation, for internal team docs, or for any other documentation.

Development

Prerequisites

  • NodeJS (v16.x)
  • npx (installed by default with npm)
  • Yarn

Install npm packages

yarn install --frozen-lockfile

Create config file

cp .codexdocsrc.sample .codexdocsrc
cp .env.sample .env

Run application (both frontend and backend)

yarn dev

Then you can open browser and navigate to http://localhost:3000.

Now you can authenticate in the application and start creating your documentation.

Available scripts

Start whole application (backend and frontend in watch mode)

yarn dev

Start backend in development mode

yarn start-backend

Compile TypeScript files

yarn compile

Build frontend

To build frontend sources run the following command:

yarn build-frontend

To build frontend and watch for changes run the following command:

yarn build-frontend:dev

Run ESLint with --fix option

yarn lint

Run tests

yarn test

Setup

You can configure application using configs in /config directory.

Property Role
port to set port of application
database to name directory with data
rcFile to set destination of codexdocsrc config file
uploads to set destination of directory to save uploads
secret to set secret
favicon to set url or favicon path (favicon need to be in /public directory), like /myFavicon.png, to get favicon. Server uploads file by url and saves it to temporary directory. And you can get favicon by /favicon static route of application

You can configure application using configs in /config directory.

Authentication

To manage pages you need to authorize (available on /auth).

To set password, set the PASSWORD environment variable inside the .env file.

Release process

We use release-drafter to generate release notes and GitHub release. It will automatically generate draft release based pull requests data between current version and previous version. To make new release you need go to releases page find the latest draft release and mark it as ready. After creating new release, new git tag will be created and new version will be published.

About CodeX

CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are open for young people who want to constantly improve their skills and grow professionally with experiments in cutting-edge technologies.

🌐 Join 👋 Twitter Instagram
codex.so codex.so/join @codex_team @codex_team