Skip to content

Commit

Permalink
Merge pull request #421 from klihub/devel/docs/update-toolchain
Browse files Browse the repository at this point in the history
docs: fix build error, avoid testdata scan infinite loop.
  • Loading branch information
fmuyassarov authored Dec 3, 2024
2 parents ef4c84f + 9920b82 commit 3b69120
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM sphinxdoc/sphinx:5.3.0
FROM sphinxdoc/sphinx:7.4.7

ARG GO_VERSION=1.23.3

RUN apt-get update && apt-get install -y wget git

# Note: Any golang version that can 'go list -m -f {{.Variable}}' is fine...
RUN wget https://go.dev/dl/go1.20.4.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.20.4.linux-amd64.tar.gz
RUN wget https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz

ENV PATH=$PATH:/usr/local/go/bin

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def gomod_versions(modules):
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['build', 'build-aux', '_build', '.github', '_work', 'generate', 'README.md', 'TODO.md', 'SECURITY.md', 'CODE-OF-CONDUCT.md', 'docs/releases', 'test/self-hosted-runner/README.md', 'test/e2e/README.md', 'docs/resource-policy/releases', 'docs/resource-policy/README.md','test/statistics-analysis/README.md', 'deployment/helm/*/*.md']
exclude_patterns = ['build', 'build-aux', '_build', '.github', '_work', 'generate', 'README.md', 'TODO.md', 'SECURITY.md', 'CODE-OF-CONDUCT.md', 'docs/releases', 'test/self-hosted-runner/README.md', 'test/e2e/README.md', 'docs/resource-policy/releases', 'docs/resource-policy/README.md','test/statistics-analysis/README.md', 'deployment/helm/*/*.md', '**/testdata']

# -- Options for HTML output -------------------------------------------------

Expand Down
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sphinx==5.3.0
sphinx_rtd_theme==1.2.2
myst-parser==0.19.2
sphinx==7.4.7
sphinx_rtd_theme==2.0.0
myst-parser==4.0.0
sphinx-markdown-tables==0.0.17
Pygments==2.15.0
Pygments==2.17.0

0 comments on commit 3b69120

Please sign in to comment.