Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exploration of new docs build system #6043

Merged
merged 203 commits into from Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
7e3714f
added first build of new docs
tmbo Jun 18, 2020
2a3ed06
added src diretory
tmbo Jun 18, 2020
840c892
fixed src getting ignored
tmbo Jun 18, 2020
cf6d3c1
fixed build
tmbo Jun 18, 2020
bedde10
updated build
tmbo Jul 3, 2020
f817802
fixed some issues in existing docs
tmbo Jul 3, 2020
a781cfc
add sphinx-markdown-builder to pyproject.toml
m-vdb Jul 8, 2020
47833ed
Merge branch 'master' into new-docs-system
m-vdb Jul 8, 2020
a59ca62
add missing pytablewriter property (temp)
m-vdb Jul 8, 2020
6f8a6a8
run make markdown after master merge
erohmensing Jul 9, 2020
96d8780
old docs: fix blue lines in lists in building assistants
erohmensing Jul 9, 2020
991e501
fix copyable affecting rest of page
erohmensing Jul 9, 2020
20dbf41
old docs: fix cloud storage page
erohmensing Jul 9, 2020
8316f4e
old docs: fix small issues
erohmensing Jul 9, 2020
e94b4c5
run make markdown after fixing issues in old docs
erohmensing Jul 9, 2020
97b58d0
fix glossary formatting
m-vdb Jul 10, 2020
d154097
fix backtrace in docs
m-vdb Jul 10, 2020
58e099b
fix image width + alt
m-vdb Jul 10, 2020
fe11154
more reliable sidebar (javascript Object key order)
m-vdb Jul 10, 2020
1ec5541
add remark-sources
m-vdb Jul 10, 2020
be39855
remove pytablewriter dependency
m-vdb Jul 13, 2020
2ef9a95
manually fix pull-quote
m-vdb Jul 13, 2020
0262a35
add remark-collapse
m-vdb Jul 13, 2020
9178e35
use remark-collapse in doc
m-vdb Jul 13, 2020
cb9b897
remove useless package-lock.json
m-vdb Jul 13, 2020
6f6a1e6
fix warnings in console about attribute names
m-vdb Jul 13, 2020
b56f43d
fix syntax error
m-vdb Jul 13, 2020
421a085
adapt some literalinclude directive (the easy ones)
m-vdb Jul 13, 2020
240c43e
fix formatting for option directive
m-vdb Jul 13, 2020
0137605
add support for variables defined at build time
m-vdb Jul 14, 2020
cec1891
read toml file instead of custom version file
m-vdb Jul 14, 2020
ad2d709
add const for DISCLAIMER + missing semicolon
m-vdb Jul 14, 2020
b2add7d
fix code block type (python3 -> python)
m-vdb Jul 14, 2020
98e52f9
remove sphinx-markdown-builder from pyproject.toml
m-vdb Jul 15, 2020
a2e1108
Merge branch 'master' into new-docs-system
m-vdb Jul 15, 2020
e6a2242
run make markdown after master merge
m-vdb Jul 15, 2020
122943b
comment out docs workflows in CI
m-vdb Jul 15, 2020
fe9e05d
add step to test new docs in CI
m-vdb Jul 15, 2020
aea8cab
initial setup for deployment of new docs
m-vdb Jul 15, 2020
481db10
deploy should also build variables
m-vdb Jul 15, 2020
1f03072
add caching for Yarn packages in CI
m-vdb Jul 15, 2020
2546a8f
setup GIT_USER variable in workflow
m-vdb Jul 15, 2020
4304b4e
configure docusaurus in docs only mode
m-vdb Jul 15, 2020
76a80cd
add new-version shorthand
m-vdb Jul 15, 2020
3b40d28
remove unneeded scripts
m-vdb Jul 15, 2020
edf91fe
first draft for docs release script
m-vdb Jul 15, 2020
e7715a3
fix command + remove unnecessary print
m-vdb Jul 15, 2020
5fa10f9
fix syntax error in package.json
m-vdb Jul 15, 2020
97c9a34
update docs README
m-vdb Jul 15, 2020
e155431
update build script: do not compute variables
m-vdb Jul 15, 2020
92fc1d9
remove comments in package.json
m-vdb Jul 15, 2020
45fab3c
remove duplicate call to make install-full
m-vdb Jul 15, 2020
8f5d600
build variables in CI too
m-vdb Jul 15, 2020
67db047
also push source files
m-vdb Jul 15, 2020
40ead7c
remove docs index.js
m-vdb Jul 15, 2020
e67efe7
only build documentation workflow on master and tags
m-vdb Jul 15, 2020
1c04364
support new version in scripts/push_docs_to_branch.sh
m-vdb Jul 15, 2020
f71ec39
do not push docs if nothing changed
m-vdb Jul 15, 2020
7a9fb85
TEST: run documentation workflow in PR
m-vdb Jul 16, 2020
cffb65d
fix cache directory in workkflow
m-vdb Jul 16, 2020
b8c5fac
add missing poetry run in workflow
m-vdb Jul 16, 2020
85cf82f
add test change to doc
m-vdb Jul 16, 2020
aa1dd1b
fix condition in script
m-vdb Jul 16, 2020
69d8572
fix shorthand for commit command
m-vdb Jul 16, 2020
1daddd9
fix copying of files
m-vdb Jul 16, 2020
bc12e85
test new version cut
m-vdb Jul 16, 2020
80f0a5e
test new version cut:major
m-vdb Jul 16, 2020
5444720
run new version command in the right folder
m-vdb Jul 16, 2020
174af99
cleanup testing instructions
m-vdb Jul 16, 2020
43a6dd6
added redoc as a component
tmbo Jul 16, 2020
c8d2bcc
working on moving towards md towncrier support
tmbo Jul 16, 2020
1cb71ba
update other docs related targets in Makefile
m-vdb Jul 20, 2020
701eeb5
make docs target to simplify usage
m-vdb Jul 20, 2020
61120fc
copy everything into the documentation branch
m-vdb Jul 20, 2020
381875d
build the docs for minors as well
m-vdb Jul 20, 2020
456caef
support doc updates to existing versions
m-vdb Jul 20, 2020
6fab2bf
add version dropdown
m-vdb Jul 20, 2020
0a125f9
fix syntax error in script
m-vdb Jul 20, 2020
c47348e
compile variables inside the docs/ folder
m-vdb Jul 20, 2020
a6ce119
add comment to make the import explicit
m-vdb Jul 20, 2020
646133b
fix active base regex
m-vdb Jul 20, 2020
3dcf48d
do not forget to add variables.json to git despite gitignore
m-vdb Jul 20, 2020
6b25bdc
add badge to README
m-vdb Jul 20, 2020
0085aed
fix comment syntax in mdx
m-vdb Jul 20, 2020
3cbd898
fix wrong import path
m-vdb Jul 20, 2020
a7fbcc8
draft version of program output with docusaurus
m-vdb Jul 21, 2020
b16c78e
Merge pull request #6211 from RasaHQ/new-docs-ci-build
m-vdb Jul 21, 2020
e72301a
update forked dependency
m-vdb Jul 21, 2020
fd866fd
docstring everywhere
m-vdb Jul 21, 2020
2a7d86f
add missing dependencies in package.json
m-vdb Jul 21, 2020
f41d1b3
update remaining docs
m-vdb Jul 21, 2020
687bfea
also convert dashes
m-vdb Jul 21, 2020
2221cec
bump remark-source package version
m-vdb Jul 22, 2020
1b4bd28
Merge branch 'master' into new-docs-system
m-vdb Jul 22, 2020
2b1c3b1
run make markdown after master merge
m-vdb Jul 22, 2020
990f3f4
add pre-build step to build included source files
m-vdb Jul 22, 2020
1d85c19
fix space issue in regex
m-vdb Jul 22, 2020
b396187
1st doc update: use docs/sources/ prefix
m-vdb Jul 22, 2020
1bbe52f
add cleanup task
m-vdb Jul 22, 2020
b4d1181
add docstring for included_source plugin
m-vdb Jul 22, 2020
e144b8d
Merge pull request #6253 from RasaHQ/new-docs-program-output
m-vdb Jul 22, 2020
cb81b1e
Merge branch 'new-docs-system' into new-docs-include-literals
m-vdb Jul 22, 2020
d4a7e7f
move RestInput in its own module
m-vdb Jul 22, 2020
aff4ba4
update custom-connectors page
m-vdb Jul 22, 2020
56b309d
fix links to custom connectors
m-vdb Jul 22, 2020
56c603d
Merge branch 'master' into new-docs-system
m-vdb Jul 22, 2020
968e4a1
keep CHANGELOG.mdx at the top-level
m-vdb Jul 22, 2020
24b796e
convert new changelog fragments
m-vdb Jul 22, 2020
f758baf
fix docs URLs
m-vdb Jul 22, 2020
0777558
remove old docs/ folder
m-vdb Jul 22, 2020
4b18077
move newdocs/ to docs/
m-vdb Jul 22, 2020
bd3579c
run yarn pre-build in documentation workflow
m-vdb Jul 22, 2020
581a4be
comment out Redoc, not working in a production build at the moment
m-vdb Jul 22, 2020
018eb7b
Merge branch 'master' into new-docs-system
m-vdb Jul 22, 2020
92d4f04
fix forms literalincludes
erohmensing Jul 22, 2020
8286c36
make clean also cleans .docusaurus/ folder
m-vdb Jul 22, 2020
8306526
put in placeholder text for events page
erohmensing Jul 22, 2020
7f153f9
fix redoc rendering in production build
m-vdb Jul 22, 2020
6e76fbf
remove includes from reminders page
erohmensing Jul 22, 2020
997f523
run make markdown and fix literalinclude reference
erohmensing Jul 22, 2020
1e2b129
Update newdocs/docs/core/forms.mdx
erohmensing Jul 22, 2020
189e390
fix typing in Message class
m-vdb Jul 21, 2020
8bf4484
add typing for entities
m-vdb Jul 21, 2020
8ef417c
raise exception if intent name contains a slash
m-vdb Jul 21, 2020
0f2499c
better error message
m-vdb Jul 22, 2020
1985659
Added a `version` key for the training data files
Jul 20, 2020
0534f29
Merge branch 'new-docs-system' into new-docs-include-literals
m-vdb Jul 22, 2020
b08e105
fix docs links
m-vdb Jul 22, 2020
9642fff
use proper string format
m-vdb Jul 22, 2020
e8396d4
reword agent -> assistant
m-vdb Jul 22, 2020
606116e
bump remark-source version
m-vdb Jul 23, 2020
26707f2
lint
erohmensing Jul 23, 2020
dd41dbf
update typo CI setup
m-vdb Jul 23, 2020
35da077
Merge pull request #6258 from RasaHQ/new-docs-include-literals
rasabot Jul 23, 2020
7835a50
update docusaurus dependency
erohmensing Jul 27, 2020
c06c77c
update lockfile
erohmensing Jul 27, 2020
bd60728
Merge pull request #6281 from RasaHQ/update-docasaurus
erohmensing Jul 27, 2020
6875a09
Merge branch 'master' into new-docs-system
m-vdb Jul 28, 2020
5eb1fc6
docs changes after master merge
m-vdb Jul 28, 2020
f60b3a4
move rst changelog fragments to markdown
m-vdb Jul 28, 2020
7e8df90
update SEO for mdx pages
m-vdb Jul 28, 2020
70ce2be
bump docusaurus version
m-vdb Jul 28, 2020
b68f60f
update primary color
m-vdb Jul 29, 2020
401aa63
ignore broken links for now
m-vdb Jul 29, 2020
e298750
fix broken links after docusaurus bump (adding .mdx suffix)
m-vdb Jul 29, 2020
de947a6
update favicon
m-vdb Jul 29, 2020
7cd302a
port prototype-an-assitant to MDX
m-vdb Jul 29, 2020
40d84b1
try @docusaurus/theme-live-codeblock out of the box
m-vdb Jul 29, 2020
dc3ebd3
skeletton for buttons
m-vdb Jul 29, 2020
04be1f5
use our own theme
m-vdb Jul 29, 2020
81e1dc1
<Prototyoper /> high-level component
m-vdb Jul 29, 2020
77e4512
fix missing dependency
m-vdb Jul 29, 2020
3980e55
fix useState() call
m-vdb Jul 29, 2020
d97c572
fix call to tracking API
m-vdb Jul 29, 2020
d5b9adc
fix editor names
m-vdb Jul 29, 2020
0ed58f0
implement training and download calls
m-vdb Jul 29, 2020
6c7ed17
add utils for tracking id
m-vdb Jul 29, 2020
c2ee39a
set trackingId only in production builds
m-vdb Jul 29, 2020
ab0d5e3
integrate the chatblock
m-vdb Jul 29, 2020
54eec07
update typo
m-vdb Jul 29, 2020
579ab38
implement spinner and disabled states
m-vdb Jul 30, 2020
92f399a
quick fix for weird CSS
m-vdb Jul 30, 2020
54ceb30
update baseUrl
m-vdb Jul 30, 2020
abcb0a2
Merge branch 'new-docs-system' into interactive-code-cells
m-vdb Jul 30, 2020
ec67525
Merge branch 'master' into new-docs-system
m-vdb Jul 30, 2020
6c9d348
update changelog items to the new format
m-vdb Jul 30, 2020
ade2ed0
fix broken links in changelog fragments
m-vdb Jul 30, 2020
442cbf2
Merge branch 'new-docs-system' into interactive-code-cells
m-vdb Jul 30, 2020
d3c381c
fix typo in import
m-vdb Jul 30, 2020
aa28934
try to fix the production build 😬
m-vdb Jul 30, 2020
5390ba1
More precise FIXME comment in custom.css
m-vdb Jul 31, 2020
73a5aa3
Cleanup useless comment
m-vdb Jul 31, 2020
1add19b
remove prototype-an-assistant.rst file (merge conflict issue)
m-vdb Jul 31, 2020
e388b1f
Merge branch 'master' into new-docs-system
m-vdb Jul 31, 2020
cd2dd62
update changelog fragment after master merge
m-vdb Jul 31, 2020
5a9f290
fix URLs of static files
m-vdb Jul 31, 2020
4da0ff4
bump docusaurus to alpha.60 and remove FIXME
m-vdb Jul 31, 2020
637c657
remove docs footer links
m-vdb Jul 31, 2020
1b8ae09
fix broken links ✅ 🔗
m-vdb Jul 31, 2020
fd83104
Merge branch 'new-docs-system' into interactive-code-cells
m-vdb Jul 31, 2020
2c78b4a
Merge pull request #6298 from RasaHQ/interactive-code-cells
m-vdb Aug 3, 2020
75cb2ef
transfer to rules
indam23 Jul 20, 2020
3ce42cb
fix intent name
indam23 Jul 21, 2020
7026ca3
nlu
indam23 Jul 22, 2020
7647ff0
add information about running a callabck server to test reminders
erohmensing Jul 22, 2020
48d8eef
switch to a sanic callback server
erohmensing Jul 22, 2020
d728d91
Apply suggestions from code review
erohmensing Jul 22, 2020
d114c41
put back socketio comments
indam23 Jul 22, 2020
e2ffaea
remove extra whitespace
indam23 Jul 22, 2020
1c072c3
nlu format
indam23 Jul 29, 2020
9522b39
Apply suggestions from code review
indam23 Jul 22, 2020
b330f3a
Create PRINCIPLES.md
Jul 8, 2020
2696b76
Rules for chitchat & fallback
b-quachtran Jul 16, 2020
bfa080e
Rules yaml file
b-quachtran Jul 16, 2020
214258c
Update rules.yaml
b-quachtran Jul 16, 2020
79182cf
Updated data to 2.0 formatting
b-quachtran Jul 17, 2020
81571c1
Added stories that were ignored
b-quachtran Jul 21, 2020
d6267be
Updated gitignore
b-quachtran Jul 21, 2020
5de93c7
Update nlu.yaml
b-quachtran Jul 20, 2020
a2d2198
Updated training examples and fixed fallback config
b-quachtran Jul 27, 2020
515eb25
reformat markdown for heading structure
Jul 31, 2020
f0a6111
Merge branch 'master' into new-docs-system
m-vdb Aug 3, 2020
78d1740
Merge branch 'master' into new-docs-system
m-vdb Aug 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 17 additions & 21 deletions .github/workflows/continous-integration.yml
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Run Swagger 🕵️‍♀️
run: |
npm install -g swagger-cli
swagger-cli validate docs/_static/spec/action-server.yml
swagger-cli validate docs/_static/spec/rasa.yml
swagger-cli validate docs/static/spec/action-server.yml
swagger-cli validate docs/static/spec/rasa.yml

quality:
name: Code Quality
Expand All @@ -55,6 +55,11 @@ jobs:
with:
python-version: 3.7

- name: Set up Node 12.x 🦙
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Read Poetry Version 🔢
run: |
echo "::set-env name=POETRY_VERSION::$(scripts/poetry-version.sh)"
Expand All @@ -72,10 +77,17 @@ jobs:
key: ${{ runner.os }}-poetry-3.7-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-3.7

- name: Load Yarn Cached Packages ⬇
uses: actions/cache@v1
with:
path: docs/node_modules
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('docs/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-12.x

- name: Install Dependencies 📦
run: |
sudo apt-get -y install libpq-dev
make install-full
make install-full install-docs

- name: Lint Code 🎎
run: make lint
Expand All @@ -89,24 +101,10 @@ jobs:
# trying to run the `rasa` command once before the docs build.
run: poetry run rasa --help

# DOES NOT WORK YET DUE TO TENSORFLOW 1.5 (some issue with no tensorflow-cpu verison)
# -> should work with 2.0 and replace the below "Test Docs":
#
# - name: Test Docs
# uses: ammaraskar/sphinx-action@0.3
# with:
# docs-folder: "docs/"
# repo-token: "${{ secrets.GITHUB_TOKEN }}"
# build-command: "make SPHINXOPTS=\"-W --keep-going -A html_theme=rasabaster\" html"
# pre-build-command: "apt-get update -y && apt-get install -y git"

- name: Test Docs 📃
run: |
make install-full
poetry run python -c "from scripts import release; release.generate_changelog('major.minor.patch')"
export SPHINXBUILD=$(poetry run which sphinx-build)
cd docs && make SPHINXBUILD=$SPHINXBUILD SPHINXOPTS="-W --keep-going -A html_theme=rasabaster" html && make SPHINXBUILD=$SPHINXBUILD linkcheck

make docs

test:
name: Run Tests
Expand Down Expand Up @@ -275,9 +273,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GITHUB_TAG=${GITHUB_TAG/refs\/tags\//}
sudo apt-get update
sudo apt-get -y install pandoc
pip install -U github3.py pypandoc
pip install -U github3.py
python3 scripts/publish_gh_release_notes.py
./scripts/ping_slack_about_package_release.sh

Expand Down
25 changes: 22 additions & 3 deletions .github/workflows/documentation.yml
Expand Up @@ -3,7 +3,6 @@ name: Publish Documentation
on:
push:
branches:
- '[0-9]+.[0-9]+.x'
- 'master'
tags:
- '**'
Expand All @@ -13,6 +12,10 @@ on:
# `ssh-keygen -t rsa -b 4096 -C "Github CI Docs Key" -N "" -f key`
# - GITHUB_TOKEN: (default, from github actions)

env:
DOCS_FOLDER: docs
DOCS_BRANCH: documentation

jobs:
docs:
name: Build Docs
Expand All @@ -28,6 +31,11 @@ jobs:
with:
python-version: 3.6

- name: Set up Node 12.x 🦙
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Read Poetry Version 🔢
run: |
echo "::set-env name=POETRY_VERSION::$(scripts/poetry-version.sh)"
Expand All @@ -45,12 +53,23 @@ jobs:
key: ${{ runner.os }}-poetry-3.6-non-full-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-3.6-non-full

- name: Load Yarn Cached Packages ⬇
uses: actions/cache@v1
with:
path: docs/node_modules
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('docs/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-12.x

- name: Install Dependencies 📦
run: make install
run: make install install-docs

- name: Pre-build Docs 🧶
run: cd $DOCS_FOLDER && poetry run yarn pre-build

- name: Build & Publish Docs 🏃‍♀️
env:
GITHUB_DOCS_KEY: ${{ secrets.GITHUB_DOCS_KEY }}
TMP_DOCS_FOLDER: ~/tmp-documentation
run: |
eval "$(ssh-agent -s)"; touch docs_key; chmod 0600 docs_key
echo "$GITHUB_DOCS_KEY" > "docs_key"
Expand All @@ -60,4 +79,4 @@ jobs:
git config --global user.name "GitHub CI"
git remote set-url --push origin "git@github.com:${{github.repository}}"

poetry run sphinx-versioning push docs docs . -- -b dirhtml -A html_theme=rasabaster
./scripts/push_docs_to_branch.sh
12 changes: 4 additions & 8 deletions .gitignore
Expand Up @@ -18,8 +18,6 @@ venv
.pytype
dist/
pip-wheel-metadata
docs/nlu/_build
docs/_build
server/
scala/
mongodb/
Expand Down Expand Up @@ -47,15 +45,11 @@ tmp_training_data.json
models/
.mypy_cache/
*.tar.gz
docs/nlu/key
docs/nlu/key.pub
secrets.tar
.pytest_cache
src
test_download.zip
bower_components/
build/lib/
docs/core/_build
/models/
node_modules/
npm-debug.log
Expand All @@ -72,8 +66,6 @@ examples/moodbot/errors.json
examples/formbot/models*
examples/concertbot/models*
examples/moodbot/models*
docs/core/key
docs/core/key.pub
failed_stories.md
errors.json
pip-wheel-metadata/*
Expand All @@ -88,3 +80,7 @@ rasa.db-wal
env
.dir-locals.el
.history
docs/.docusaurus
docs/docs/variables.json
docs/docs/sources/
docs/docs/changelog.mdx
9 changes: 7 additions & 2 deletions .typo-ci.yml
Expand Up @@ -22,8 +22,10 @@ excluded_files:
- "*.yaml"
- "*.html"
- "*.json"
- "*.lock"
- "*.js"
- "*.md"
- "CHANGELOG.rst"
- "CHANGELOG.mdx"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "Dockerfile"
Expand All @@ -32,7 +34,6 @@ excluded_files:
- "NOTICE"
- "README.md"
- "cloudbuild.yaml"
- "poetry.lock"
- "pyproject.toml"
- "secrets.tar.enc"
- "setup.cfg"
Expand Down Expand Up @@ -70,6 +71,7 @@ excluded_words:
- daksh
- db's
- deque
- docusaurus
- non-latin
- deduplicate
- deduplication
Expand Down Expand Up @@ -154,5 +156,8 @@ excluded_words:
- unschedule
- wsgi
- ruamel
- prototyper
- hallo
- crypto

spellcheck_filenames: false