Skip to content

Commit

Permalink
doc/main: Drop beta tag.
Browse files Browse the repository at this point in the history
Less variants is better. Now we'll just have to add beta support for SPIKE in the next release.

Fixes #102
  • Loading branch information
laurensvalk committed Jun 10, 2022
1 parent 8e7fc53 commit 6d0de1e
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 170 deletions.
7 changes: 2 additions & 5 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ SPHINXPROJ = Pybricks
SOURCEDIR = main
BUILDDIR = "$(SOURCEDIR)"/build
TAG = main
ifeq ($(BETA),1)
BETATAG = "-tbeta"
endif

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(TAG) $(BETATAG) $(O)
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(TAG) $(O)

.PHONY: help Makefile

Expand All @@ -25,4 +22,4 @@ diagrams:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -t $(TAG) $(BETATAG) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -t $(TAG) $(O)
4 changes: 0 additions & 4 deletions doc/main/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
if os.environ.get("READTHEDOCS", None) == "True":
tags.add("main") # noqa F821

# On https://docs.pybricks.com/en/latest/, show features tagged as beta.
if os.environ.get("READTHEDOCS_VERSION_NAME", None) == "latest":
tags.add("beta") # noqa F821

# Addtional configuration of the IDE docs
if "ide" in tags.tags: # noqa F821
_DISCLAIMER = ""
Expand Down

0 comments on commit 6d0de1e

Please sign in to comment.