Skip to content

Commit 6ed5d82

Browse files
committed
docs: treat README.rst same way as README.md
1 parent a96b91d commit 6ed5d82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ setup:
2727
@if [ ! -d "$(SOURCEDIR)" ]; then mkdir -p "$(SOURCEDIR)"; fi
2828
cp -RL source/* $(SOURCEDIR)
2929
cd $(SOURCEDIR) && find . -name README.md -execdir mv '{}' index.md ';'
30+
cd $(SOURCEDIR) && find . -name README.rst -execdir mv '{}' index.rst ';'
3031

3132
.PHONY: update
3233
update:

docs/_utils/multiversion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
22

33
cd .. && sphinx-multiversion docs/source docs/_build/dirhtml \
4-
--pre-build "find . -mindepth 2 -name README.md -execdir mv '{}' index.md ';'" \
4+
--pre-build "(find . -mindepth 2 -name README.md -execdir mv '{}' index.md ';'; find . -mindepth 2 -name README.rst -execdir mv '{}' index.rst ';')" \
55
--post-build './docs/_utils/javadoc.sh'

0 commit comments

Comments
 (0)