Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
5bbfd32
Fix sidebar being impossible to hide on tablet screen (#266)
TatianaFomina Sep 15, 2022
2dd4873
fix(styles): editor styles improved (#268)
neSpecc Sep 15, 2022
5a7f1c8
fix(readme): editor.js link missprint resolved
Explosion-Scratch Sep 15, 2022
1376209
Implement yaml config (#271)
nikmel2803 Sep 28, 2022
55b4b3e
🤩MongoDB support 🤩 (#272)
nikmel2803 Oct 3, 2022
8c79430
S3 uploads support (#273)
nikmel2803 Oct 8, 2022
698c09c
Add search to sidebar (#215)
robonetphy Oct 13, 2022
4ad37ab
[Feature] Static pages rendering 🤩 (#274)
nikmel2803 Oct 17, 2022
b67717c
Enforce authentication for API routes (#276)
Ezzer17 Oct 24, 2022
ccbd79d
Env vars config override and some fixes (#277)
nikmel2803 Nov 3, 2022
d9bfb88
Merge branch 'main' of github.com:codex-team/codex.docs into v2
nikmel2803 Nov 3, 2022
7914a5a
Update docker-compose.yml
nikmel2803 Nov 4, 2022
17857c8
fix issue with link preview
nikmel2803 Nov 7, 2022
90c68d6
fix docker mounts
nikmel2803 Nov 7, 2022
2e11b00
add docker-compose.yml for production use
nikmel2803 Nov 7, 2022
6e48ade
Test pipeline (#279)
nikmel2803 Nov 7, 2022
2aaa889
update package.json version
nikmel2803 Nov 7, 2022
ca58118
fix pipeline
nikmel2803 Nov 7, 2022
939594f
enable latest tag for default branch
nikmel2803 Nov 7, 2022
dc14833
fix pipeline and update version
nikmel2803 Nov 7, 2022
7e329c5
fix pipeline and update version
nikmel2803 Nov 7, 2022
081da2c
test another pipeline
nikmel2803 Nov 7, 2022
f41dac2
test another pipeline
nikmel2803 Nov 7, 2022
ae721d1
test another pipeline
nikmel2803 Nov 7, 2022
9c23a8a
change default favicon
nikmel2803 Nov 7, 2022
e4fb951
remove unnecessary file
nikmel2803 Nov 12, 2022
6b12bf1
some fixes for docs and configs
nikmel2803 Nov 12, 2022
339993e
fix delete button
nikmel2803 Nov 14, 2022
912a8cd
fix doc
nikmel2803 Nov 15, 2022
b6dfd14
add config override to docker-compose.dev.yml
nikmel2803 Nov 15, 2022
882971c
Merge pull request #278 from codex-team/v2
nikmel2803 Nov 16, 2022
f372a57
Bump loader-utils from 2.0.2 to 2.0.4
dependabot[bot] Nov 16, 2022
b83d468
remove unnecessary v from release pipeline
nikmel2803 Nov 16, 2022
de30ddf
Merge pull request #282 from codex-team/fix-release-pipeline
nikmel2803 Nov 16, 2022
91ba44a
refactor: delete copy link button from header
alsolovyev Nov 29, 2022
285b947
feat: add reusable copy button component
alsolovyev Nov 29, 2022
dc0c32a
feat: add copy button to header
alsolovyev Nov 29, 2022
1c3ada9
feat: add copy button to code block
alsolovyev Nov 29, 2022
3ca4a17
fix: trim content of TOC elements
alsolovyev Nov 29, 2022
3d172d3
fix: delete sidebar width on mobile devices
alsolovyev Nov 29, 2022
185550d
fix: change units of max content width from vw to %
alsolovyev Nov 29, 2022
36ba3a3
fix: prevent scrollbar-x from appearing on small screens
alsolovyev Nov 29, 2022
6ff8b7e
Merge pull request #283 from alsolovyev/feat/copy-button
nikmel2803 Nov 30, 2022
59829f5
Merge pull request #285 from alsolovyev/fix/horizontal-scrollbar
nikmel2803 Dec 1, 2022
174274e
Merge pull request #281 from codex-team/dependabot/npm_and_yarn/loade…
nikmel2803 Dec 1, 2022
9218843
Remove overflow
TatianaFomina Dec 1, 2022
8a8db5c
Merge pull request #287 from codex-team/fix-fixed-sidebar
nikmel2803 Dec 1, 2022
d3e0cb1
Added enable parameter for rendering index page (#289)
slaveeks Dec 13, 2022
f78b9ec
Fixed copy button path in header.twig, code.twig (#290)
slaveeks Dec 27, 2022
7f51a72
fix(ui): broken sidebar, table of content and header on linux (#315)
neSpecc Apr 26, 2024
a6391a3
Update version to v2.2.1 in package.json
neSpecc Apr 26, 2024
f8ba8ab
Static generation fixes (#292)
nikmel2803 Apr 26, 2024
481461d
Update version to 2.2.2 in package.json
neSpecc Apr 27, 2024
bb9d537
Add static rendering feature (#316)
neSpecc Apr 27, 2024
453f706
fix linebreak in readme
neSpecc Apr 27, 2024
6c4d431
2.2.3
neSpecc May 3, 2024
9993be5
Fix ERR_UNKNOWN_FILE_EXTENSION error when running TypeScript files wi…
Copilot Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .codexdocsrc.sample

This file was deleted.

1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*
!public
!src
src/test
!package.json
!yarn.lock
!webpack.config.js
Expand Down
8 changes: 0 additions & 8 deletions .env.sample

This file was deleted.

23 changes: 16 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,26 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get full image name
id: base_image_name
env:
BASE_IMAGE_NAME: ${{ github.repository }}
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}" >> $GITHUB_OUTPUT
else
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}-stage" >> $GITHUB_OUTPUT
fi

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -30,13 +40,12 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ steps.base_image_name.outputs.image_name }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{branch}}-{{sha}}-{{date 'X'}},enable=${{ startsWith(github.ref, 'refs/heads') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}},prefix=v
type=semver,pattern={{major}}.{{minor}},prefix=v

- name: Build and push image
uses: docker/build-push-action@v3
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ typings/

# Database files
.db/
db/
.testdb/

# Cache of babel and others
Expand All @@ -74,9 +75,13 @@ typings/
.DS_Store

# Uploads
/public/uploads
/uploads
/public/uploads_test

# Compiled files
/dist/*
/public/dist/*

*.local.yaml

static-build
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*
!public/**/*
public/uploads
!dist/**/*
!package.json
!README.md
!yarn.lock
!LICENSE
94 changes: 94 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Development guide

This doc describes how to bootstrap and run the project locally.

## Setup

### 1. Clone the repo
```shell
git clone https://github.com/codex-team/codex.docs
```

### 2. Install dependencies

```shell
yarn install
```

### 3. Create separate config file for local overrides

```shell
touch docs-config.local.yaml
```

### 4. Run the application

```shell
yarn dev
```

## Starting docs with MongoDB

By default, the application uses a local database powered by [nedb](https://www.npmjs.com/package/nedb).
In order to use MongoDB, follow these steps:


### 1. Run MongoDB instance with docker-compose

```shell
docker-compose -f docker-compose.dev.yml up mongodb
```

### 2. Setup MongoDB driver in docs-config.local.yaml

```yaml
database:
driver: mongodb
mongodb:
uri: mongodb://localhost:27017/docs
```

### 3. Run the application

```shell
yarn dev
```

## Convert local database to MongoDB

There is small CLI tool to convert local database to MongoDB in [bin/db-converter](./bin/db-converter/README.md).
Check it out for more details.

Run it with

```shell
node bin/db-converter --db-path=./db --mongodb-uri=mongodb://localhost:27017/docs
```

## Using S3 uploads driver

Uploads driver is used to store files uploaded by users.
By default, the application uses local filesystem to store files, but S3 driver is also available.

### 1. Get credentials for S3 bucket
Create a S3 bucket and get access key and secret key (or use existing ones)

### 2. Setup S3 driver in docs-config.local.yaml

```yaml
uploads:
driver: "s3"
s3:
bucket: example.codex.so
region: "eu-central-1"
baseUrl: "http://example.codex.so.s3-website.eu-central-1.amazonaws.com"
keyPrefix: "docs-test"
accessKeyId: "<secret>"
secretAccessKey: "<secret>
```

### 3. Run the application

```shell
yarn dev
```
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ It's super easy to install and use.

## Features

- 🤩 [Editor.js](https://editor.js/?from=docs-demo) ecosystem powered
- 🤩 [Editor.js](https://editorjs.io/) ecosystem powered
- 📂 Docs nesting — create any structure you need
- 💎 Static rendering
- 📱 Nice look on Desktop and Mobile
- 🔥 Beautiful page URLs. Human-readable and SEO-friendly.
- 🦅 [Hawk](https://hawk.so/?from=docs-demo) is hunting. Errors tracking integrated
Expand All @@ -29,7 +30,7 @@ Here is our [Demo Application](https://docs-demo.codex.so/) where you can try Co

1. [Getting Started](https://docs.codex.so/getting-started)
2. [Configuration](https://docs.codex.so/configuration)
3. [Deployment](https://docs.codex.so/deployment)
3. [Kubernetes deployment](https://docs.codex.so/k8s-deployment)
4. [Authentication](https://docs.codex.so/authentication)
5. [Writing](https://docs.codex.so/writing)
6. [How to enable analytics](https://docs.codex.so/yandex-metrica)
Expand Down Expand Up @@ -66,6 +67,10 @@ docker-compose up

We have the ready-to-use [Helm chart](https://github.com/codex-team/codex.docs.chart) to deploy project in Kubernetes

## Development

See documentation for developers in [DEVELOPMENT.md](./DEVELOPMENT.md).

# About CodeX

<img align="right" width="120" height="120" src="https://codex.so/public/app/img/codex-logo.svg" hspace="50">
Expand Down
14 changes: 14 additions & 0 deletions bin/db-converter/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": [
"codex"
],
"env": {
"es2022": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module",
"allowImportExportEverywhere": true
}
}
2 changes: 2 additions & 0 deletions bin/db-converter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.yarn/unplugged
.yarn/build-state.yml
Loading