Skip to content

Commit

Permalink
Remove README from docs (#503)
Browse files Browse the repository at this point in the history
* Remove readme from docs

* Remove unused package

* Remove reference to readme
  • Loading branch information
akihironitta authored Jan 11, 2021
1 parent 1a45b50 commit c43622e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
19 changes: 9 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import glob
import inspect
import os
import re
import shutil
import sys

Expand Down Expand Up @@ -53,15 +52,15 @@

# -- Project documents -------------------------------------------------------
# export the READme
with open(os.path.join(PATH_ROOT, 'README.md'), 'r') as fp:
readme = fp.read()
# TODO: temp fix removing SVG badges and GIF, because PDF cannot show them
readme = re.sub(r'(\[!\[.*\))', '', readme)
readme = re.sub(r'(!\[.*.gif\))', '', readme)
for dir_name in (os.path.basename(p) for p in glob.glob(os.path.join(PATH_ROOT, '*')) if os.path.isdir(p)):
readme = readme.replace('](%s/' % dir_name, '](%s/%s/' % (PATH_ROOT, dir_name))
with open('readme.md', 'w') as fp:
fp.write(readme)
# with open(os.path.join(PATH_ROOT, 'README.md'), 'r') as fp:
# readme = fp.read()
# # TODO: temp fix removing SVG badges and GIF, because PDF cannot show them
# readme = re.sub(r'(\[!\[.*\))', '', readme)
# readme = re.sub(r'(!\[.*.gif\))', '', readme)
# for dir_name in (os.path.basename(p) for p in glob.glob(os.path.join(PATH_ROOT, '*')) if os.path.isdir(p)):
# readme = readme.replace('](%s/' % dir_name, '](%s/%s/' % (PATH_ROOT, dir_name))
# with open('readme.md', 'w') as fp:
# fp.write(readme)

# copy all documents from GH templates like contribution guide
for md in glob.glob(os.path.join(PATH_ROOT, '.github', '*.md')):
Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ Indices and tables
.. toctree::
:hidden:

readme
api/pl_bolts.callbacks
api/pl_bolts.datamodules
api/pl_bolts.datasets
Expand Down

0 comments on commit c43622e

Please sign in to comment.