diff --git a/Makefile b/Makefile index 554945691b459..e6ddeffbe8604 100644 --- a/Makefile +++ b/Makefile @@ -156,9 +156,7 @@ epub: @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: - $(PYTHON) docs/prepare_readme_for_latex.py $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - mv README.rst.bak README.rst @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ @@ -166,18 +164,14 @@ latex: # seems to be malfunctioning latexpdf: - $(PYTHON) docs/prepare_readme_for_latex.py $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - mv README.rst.bak README.rst @echo "Running LaTeX files through pdflatex..." $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." # seems to be malfunctioning latexpdfja: - $(PYTHON) docs/prepare_readme_for_latex.py $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - mv README.rst.bak README.rst @echo "Running LaTeX files through platex and dvipdfmx..." $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." diff --git a/docs/prepare_readme_for_latex.py b/docs/prepare_readme_for_latex.py deleted file mode 100644 index a22abbdeb8a0a..0000000000000 --- a/docs/prepare_readme_for_latex.py +++ /dev/null @@ -1,18 +0,0 @@ -import shutil - -with open("README.rst", "r") as f: - readme_content = f.read() - -shutil.copyfile("README.rst", "README.rst.bak") - -# turn badge into text only -modified_readme_content = readme_content.replace("|Weblate|", "Weblate", 1) - -# remove image link -badge_link_lines = """.. |Weblate| image:: https://hosted.weblate.org/widgets/circuitpython/-/svg-badge.svg - :target: https://hosted.weblate.org/engage/circuitpython/?utm_source=widget""" - -modified_readme_content = modified_readme_content.replace(badge_link_lines, "") - -with open("README.rst", "w") as f: - f.write(modified_readme_content)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: