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

Documentation site redux #6751

Merged
merged 123 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
1aa78bf
Apply changes from redux proof-of-concept; Update tests; Add workarou…
neflyte Oct 30, 2023
63d94b5
Merge branch 'master' into redux
cwarnermm Oct 31, 2023
b0ab847
Merge branch 'master' into redux
cwarnermm Nov 2, 2023
71f8a10
Re-add importlib-metadata dependency for Sphinx on Python 3.9
neflyte Nov 2, 2023
2ff4096
Removed ..contents:: & deleted archived files
cwarnermm Nov 3, 2023
2288f9f
Merge branch 'master' into redux
mattermost-build Nov 3, 2023
6f0bed5
Build warnings & error fixes
cwarnermm Nov 3, 2023
47d4634
Fix build warnings/errors & formatting
cwarnermm Nov 3, 2023
8118fb3
Applied note formatting
cwarnermm Nov 3, 2023
a1bd590
Merge master into this branch
neflyte Nov 12, 2023
c510924
Port jQuery version of feedback widget to using the JS DOM; Override …
neflyte Nov 13, 2023
6ab3f20
Merge branch 'master' into redux
cwarnermm Nov 13, 2023
5abb077
Update Pipfile.lock after re-locking
neflyte Nov 13, 2023
3d758bf
Merge remote-tracking branch 'origin/redux' into redux
neflyte Nov 13, 2023
a0a5133
Merge branch 'master' into redux
cwarnermm Nov 15, 2023
d6d048c
Upgrade sphinx-tabs to 3.4.4
neflyte Nov 17, 2023
9339e81
Fix visibility of confirmation popup after submitting feedback
neflyte Nov 19, 2023
e4dfc31
Replaced sphinx-tabs with sphinx_inline_tabs
cwarnermm Nov 21, 2023
98586f9
Merge master into this branch and resolve conflicts
neflyte Nov 23, 2023
42a99d3
Merge branch 'master' into redux
cwarnermm Nov 24, 2023
388c19a
Merge branch 'master' into redux
cwarnermm Nov 24, 2023
377622b
Merge branch 'master' into redux
cwarnermm Dec 4, 2023
0de8fa1
Merge branch 'master' into redux
cwarnermm Dec 8, 2023
db306a7
Comment-out sphinx-tabs reference and re-generate lock file to fix de…
neflyte Dec 22, 2023
eb7426b
Move redirects section of conf.py higher up in the file to mitigate m…
neflyte Dec 23, 2023
80648fa
Re-add commented-out version settings to help mitigate merge conflict…
neflyte Dec 23, 2023
d78cb4f
Update commented-out version to help mitigate merge conflicts with ma…
neflyte Dec 23, 2023
8d5a707
Merge master into this branch and resolve conflicts
neflyte Dec 23, 2023
1b1c52a
Initial incomplete pass at migrating custom search to Sphinx 7
neflyte Dec 26, 2023
b455570
Remove stock Sphinx searchtols script; Remove v1 searchtools script; …
neflyte Dec 26, 2023
f03d959
Remove unused templates
neflyte Dec 26, 2023
8c0536e
Load search indexes when DOM has finished loading
neflyte Dec 26, 2023
940dbf1
Update awscli dependency; Add exceptiongroup dependency for python ol…
neflyte Dec 27, 2023
2ae8c3d
Merge branch 'master' into pr/6751
cwarnermm Jan 8, 2024
9ad266b
Merge master into this branch
neflyte Jan 9, 2024
4c558b4
Merge branch 'master' into redux
cwarnermm Jan 10, 2024
acd5374
Merge branch 'master' into redux
cwarnermm Jan 12, 2024
533d286
Merge branch 'master' into redux
cwarnermm Jan 12, 2024
0279b21
Start new styles setup
emdecr Feb 5, 2024
72a14e0
Merge branch 'master' into pr/6751
cwarnermm Feb 5, 2024
6fc5bfb
Merge branch 'redux' of https://github.com/neflyte/docs into pr/6751
cwarnermm Feb 5, 2024
197b2b9
Merge branch 'master' into redux
cwarnermm Feb 8, 2024
9b1a55f
Merge branch 'redux' of https://github.com/neflyte/docs into styles-u…
emdecr Feb 8, 2024
5f72325
Start scaffolding for redesign project
emdecr Feb 8, 2024
c5f1b52
Rename redsign files. Add conditional for index css.
emdecr Feb 8, 2024
dd2d2e2
UX UI Updates
asaadmahmood Feb 19, 2024
2110985
Updating css
asaadmahmood Feb 20, 2024
88bceb8
Merge branch 'master' of github.com:mattermost/docs into redux
asaadmahmood Feb 20, 2024
c859698
Merge branch 'master' into redux
cwarnermm Feb 23, 2024
4cbf09b
Merge branch 'master' into redux
cwarnermm Feb 26, 2024
6d61797
Updating css
asaadmahmood Feb 26, 2024
1b00540
Merge branch 'redux' of github.com:neflyte/docs into redux
asaadmahmood Feb 26, 2024
d967ed8
Updating badges
asaadmahmood Feb 27, 2024
c5a245c
Updating css
asaadmahmood Feb 27, 2024
00dcd29
Updating css
asaadmahmood Feb 27, 2024
3f1d951
Updating docs
asaadmahmood Feb 27, 2024
782ccc6
Updating docs site
asaadmahmood Feb 27, 2024
501f964
Update nav structure and adjust homepage css
emdecr Feb 27, 2024
f18cf40
Pull from master. Resolving conflicts
emdecr Feb 27, 2024
8d69ec0
Delete old css and js files
emdecr Feb 27, 2024
947c7c7
Merge branch 'master' of https://github.com/mattermost/docs into redu…
emdecr Feb 28, 2024
7fab6dc
Update styles when notification banner is active
emdecr Feb 28, 2024
82fa7f2
Update notification banner content
emdecr Feb 28, 2024
6406ba1
Added :class: theme-icon to all Compass Icon SVG refs
cwarnermm Feb 28, 2024
e9d3686
Merge branch 'redux' of https://github.com/neflyte/docs into redux
cwarnermm Feb 28, 2024
2101094
Removed legacy .. tabs:: and .. contents:: directives
cwarnermm Feb 28, 2024
045e983
Fixed build warnings/errors
cwarnermm Feb 28, 2024
dd5fc53
Merge branch 'master' into redux
cwarnermm Feb 29, 2024
643be92
Merge branch 'master' into redux
cwarnermm Mar 1, 2024
5d3b68f
Merge branch 'master' into redux
cwarnermm Mar 1, 2024
4f36fea
Merge branch 'master' into redux
cwarnermm Mar 4, 2024
28124f2
Merge branch 'master' into redux
cwarnermm Mar 6, 2024
d903c0d
Merge branch 'master' into redux
mattermost-build Mar 6, 2024
bd4d6ee
Merge branch 'master' into redux
cwarnermm Mar 7, 2024
373955f
Various UI Fixes
asaadmahmood Mar 8, 2024
58cf5fd
Release readiness & build fixes
cwarnermm Mar 8, 2024
3991d6a
Merge branch 'master' into redux
neflyte Mar 9, 2024
df54ffa
Modify redirects extension to use html_baseurl instead of hardcoded d…
neflyte Mar 10, 2024
f4c4721
Add script for one-time conversion of rST links to doc and ref direct…
neflyte Mar 10, 2024
45dc937
Small fixes to one-time link conversion script
neflyte Mar 10, 2024
bf4682f
Move one-time conversion script into root so it can access conf.py ea…
neflyte Mar 10, 2024
aba423a
Use furo's built-in base.html template
neflyte Mar 10, 2024
8267b1c
Remove extraneous templates; Add comment to page and custom-index tem…
neflyte Mar 10, 2024
c3aa84d
More robust ignoring of directories; Resolve redirects fully before c…
neflyte Mar 10, 2024
1a9cdd1
[REFACTOR] Rewrite rST links into inline doc and ref directives where…
neflyte Mar 10, 2024
62537d0
Temporary workaround to allow preview environments to use the correct…
neflyte Mar 10, 2024
97e0034
Table formatting fixes
cwarnermm Mar 11, 2024
8a23118
Converting internal HTML links > Sphinx directives
cwarnermm Mar 11, 2024
a6e5e17
Merge branch 'master' into redux
cwarnermm Mar 11, 2024
ed45949
Merge branch 'master' into pr/6751
cwarnermm Mar 11, 2024
774986e
Merge branch 'master' into redux
mattermost-build Mar 11, 2024
4f3b9bb
Converting internal HTML links > Sphinx directives
cwarnermm Mar 11, 2024
b7a0d74
Merge branch 'redux' of https://github.com/neflyte/docs into redux
cwarnermm Mar 11, 2024
d9f3be7
Converting internal HTML links > Sphinx directives
cwarnermm Mar 12, 2024
e2e33c6
Replaced ambiguous deploy badges
cwarnermm Mar 12, 2024
5835eed
Merge branch 'master' into redux
cwarnermm Mar 12, 2024
e62e140
Updating UI
asaadmahmood Mar 12, 2024
abde8d4
Updated Cloud signup URL
cwarnermm Mar 12, 2024
3d542ab
Broken link fix
cwarnermm Mar 12, 2024
e083af4
Extract Mattermost theme modifications into new page.html, leaving th…
neflyte Mar 14, 2024
93abbdc
Merge branch 'master' into redux
mattermost-build Mar 14, 2024
e19277f
Hid legacy changelogs & gencert from search results to improve results
cwarnermm Mar 14, 2024
2cf2612
Merge branch 'redux' of https://github.com/neflyte/docs into redux
cwarnermm Mar 14, 2024
9190174
Merge branch 'master' into redux
cwarnermm Mar 14, 2024
d9da336
Converting internal HTML links > Sphinx directives
cwarnermm Mar 14, 2024
89e55c3
Merge branch 'redux' of https://github.com/neflyte/docs into redux
cwarnermm Mar 14, 2024
e5c9b48
Process hardcoded docs.mattermost.com links and exclude links that cr…
neflyte Mar 15, 2024
a240e11
[REFACTOR] Migrate hardcoded docs.mattermost.com rST links to doc and…
neflyte Mar 15, 2024
23e968f
Updating thermotoer to allow multiple feedback
asaadmahmood Mar 15, 2024
a09ee24
Merge branch 'master' into redux
cwarnermm Mar 15, 2024
1f17ed8
Table syntax fixes & Converting internal HTML links > Sphinx directives
cwarnermm Mar 15, 2024
1dd62a9
Merge branch 'master' into redux
cwarnermm Mar 15, 2024
aeaf0c4
Merge branch 'master' into redux
cwarnermm Mar 18, 2024
5c91579
Add Google Tag Manager functionality; Remove commented-out search v1 …
neflyte Mar 18, 2024
ee78dbe
Merge branch 'master' into redux
cwarnermm Mar 19, 2024
0009d7a
Add GTM to custom index
emdecr Mar 19, 2024
66e2be6
Merge branch 'master' into redux
cwarnermm Mar 19, 2024
850c93a
Update notification bar with webinar deets
emdecr Mar 19, 2024
ef90955
Merge branch 'redux' of https://github.com/neflyte/docs into redux
emdecr Mar 19, 2024
cc712c2
Fixed broken link
cwarnermm Mar 19, 2024
4dcfcaf
Merge branch 'master' into redux
mattermost-build Mar 19, 2024
b329b18
Fix notification banner details
emdecr Mar 19, 2024
c8a9c92
Merge branch 'master' into redux
mattermost-build Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 23 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: CI
on:
'on':
push:
branches:
- master
Expand All @@ -10,22 +11,24 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ci/Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-python@db9987b4c1f10f0404fa60ee629f675fafbd6763 # v4.6.0
with:
python-version: '3.9'
- name: ci/Build
run: |
make python-deps
make html
- name: ci/Persist docs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: docs
path: build/html
- name: ci/Persist doc logs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: doc-logs
path: build/*.log
- name: ci/Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-python@db9987b4c1f10f0404fa60ee629f675fafbd6763 # v4.6.0
with:
python-version: 3.9
- name: ci/Install dependencies
run: make python-deps
- name: ci/Run tests
run: TZ=UTC make test
- name: ci/Build docs
run: TZ=UTC make html
- name: ci/Persist docs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: docs
path: build/html
- name: ci/Persist doc logs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: doc-logs
path: build/*.log
2 changes: 1 addition & 1 deletion .github/workflows/preview-env-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Build
if: ${{ steps.label-checker.outputs.result == 'true' }}
run: make SPHINXOPTS="-j auto -D mm_url_path_prefix=/${{ steps.pr.outputs.id }}" html
run: make SPHINXOPTS="-j auto -D html_baseurl=http://mattermost-docs-preview-pulls.s3-website-us-east-1.amazonaws.com/${{ steps.pr.outputs.id }}" html

- uses: shallwefootball/s3-upload-action@4350529f410221787ccf424e50133cbc1b52704e # v1.3.3
name: Upload Preview Env
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Build
if: github.event.pull_request.head.repo.full_name == github.repository
run: make SPHINXOPTS="-j auto -D mm_url_path_prefix=/${{ steps.pr.outputs.id }}" html
run: make SPHINXOPTS="-j auto -D html_baseurl=http://mattermost-docs-preview-pulls.s3-website-us-east-1.amazonaws.com/${{ github.event.number }}" html

- uses: shallwefootball/s3-upload-action@4350529f410221787ccf424e50133cbc1b52704e # v1.3.3
name: Upload Preview Env
Expand Down
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ WARNINGSFILE = $(BUILDDIR)/warnings.log
SPHINXOPTS ?= -j auto
SPHINXBUILD ?= pipenv run sphinx-build
SPHINXAUTOBUILD ?= pipenv run sphinx-autobuild
AUTOBUILDOPTS ?= -D=html_baseurl=http://127.0.0.1:8000

# If we're not on Windows, check to see if 'mm_url_path_prefix' is included in SPHINXOPTS.
# If it is included, extract the PR ID from the prefix and set the html_baseurl config
# option to the preview environment.
ifneq ($(OS),Windows_NT)
ifeq ($(findstring mm_url_path_prefix,$(SPHINXOPTS)),mm_url_path_prefix)
PATH_PREFIX = $(shell echo "$(SPHINXOPTS)" | grep -Eo 'mm_url_path_prefix=\/([0-9]+)' | cut -d / -f 2)
SPHINXOPTS2 = $(SPHINXOPTS) -D html_baseurl=http://mattermost-docs-preview-pulls.s3-website-us-east-1.amazonaws.com/$(PATH_PREFIX)
else
SPHINXOPTS2 = $(SPHINXOPTS)
endif
endif

# Put it first so that "make" without argument is like "make help".
help:
Expand All @@ -22,7 +35,7 @@ endif
# Install necessary dependencies for the CI build pipeline.
# NOTE: if the version of Python used to build the docs changes, update the `pipenv` command below accordingly.
python-deps:
pip install pipenv==2022.12.19
pip install pipenv==2023.11.15
pipenv install --dev --clear --deploy --python 3.9

test:
Expand All @@ -32,10 +45,10 @@ test:
livehtml:
ifeq ($(OS),Windows_NT)
@CMD /C IF NOT EXIST $(BUILDDIR) MD $(BUILDDIR)
@CMD /C $(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/html" -d "$(BUILDDIR)/doctrees" $(SPHINXOPTS) $(O)
@CMD /C $(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/html" -d "$(BUILDDIR)/doctrees" $(SPHINXOPTS) $(AUTOBUILDOPTS) $(O)
else
@mkdir -p "$(BUILDDIR)"
@$(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/html" -d "$(BUILDDIR)/doctrees" $(SPHINXOPTS) $(O)
@$(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/html" -d "$(BUILDDIR)/doctrees" $(SPHINXOPTS) $(AUTOBUILDOPTS) $(O)
endif

# Run `make linkcheck` to check external links
Expand Down Expand Up @@ -71,5 +84,5 @@ ifeq ($(OS),Windows_NT)
@CMD /C $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -w "$(WARNINGSFILE)" 2>NUL
else
@mkdir -p "$(BUILDDIR)"
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 2>>"$(WARNINGSFILE)"
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS2) $(O) 2>>"$(WARNINGSFILE)"
endif
32 changes: 21 additions & 11 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,54 @@ name = "pypi"
# Amazon AWS Universal CLI environment (https://aws.amazon.com/cli/)
# Release notes: https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst
# Repo: https://github.com/aws/aws-cli
awscli = "==1.29.38"
awscli = "==1.32.8"
#
# PyTest testing framework (https://docs.pytest.org/en/7.2.x/)
pytest = "==7.2.0"
# PyTest testing framework (https://docs.pytest.org/en/7.4.x/)
pytest = "==7.4.2"
#
# exceptiongroup: Backport of PEP-654 Exception groups to Python <3.11
exceptiongroup = {version = "*", markers = "python_version < '3.11'"}
#
# Black: A Python source formatter
black = "==23.10.1"
#
# Docutils Stubs
docutils-stubs = "==0.0.22"

[packages]
#
# Sphinx (https://www.sphinx-doc.org)
# Release notes: https://www.sphinx-doc.org/en/master/changes.html
# Repo: https://github.com/sphinx-doc/sphinx
sphinx = "==4.4.0"
sphinx = "==7.2.6"
#
# ReadTheDocs Theme (https://sphinx-rtd-theme.readthedocs.io/)
# Release notes: https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst
# Repo: https://github.com/readthedocs/sphinx_rtd_theme
sphinx-rtd-theme = "==1.0.0"
# Furo Theme (https://github.com/pradyunsg/furo)
furo = "==2023.9.10"
#
# MyST Parser (https://myst-parser.readthedocs.io/en/latest/)
# Release notes: https://myst-parser.readthedocs.io/en/latest/develop/_changelog.html
# Repo: https://github.com/executablebooks/myst-parser
myst-parser = "==0.15.1"
myst-parser = "==2.0.0"
#
# Sphinx Autobuild (https://github.com/executablebooks/sphinx-autobuild)
# Repo: https://github.com/executablebooks/sphinx-autobuild
sphinx-autobuild = "==2021.3.14"
#
# Tabbed views for Sphinx (https://sphinx-tabs.readthedocs.io/)
# Repo: https://github.com/executablebooks/sphinx-tabs
sphinx-tabs = "==3.4.0"
#sphinx-tabs = "==3.4.0"
#
# Setuptools; used by sphinx-tabs
# Repo: https://github.com/pypa/setuptools
setuptools = "==68.2.2"
#
# Add a "copy" button to code blocks in Sphinx (https://sphinx-copybutton.readthedocs.io/en/latest/)
# Repo: https://github.com/executablebooks/sphinx-copybutton
sphinx-copybutton = "0.5.0"
sphinx-copybutton = "==0.5.2"
#
# Python importlib metadata library; used by Sphinx
# Repo: https://github.com/python/importlib_metadata
importlib-metadata = "==4.12.0"
#
# Tabbed views for Sphinx (https://github.com/pradyunsg/sphinx-inline-tabs)
sphinx-inline-tabs = "==2023.04.21"
Loading
Loading