Skip to content

Commit

Permalink
Readthedocs build: run the fix_missing_links script via bash rather t…
Browse files Browse the repository at this point in the history
…han sed directly.

PiperOrigin-RevId: 469177326
Change-Id: If8602c360c9bc15a848db730c738886fa148f10e
  • Loading branch information
lanctot committed Aug 22, 2022
1 parent 5722daf commit fc0783f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ build:
- echo "Running post-build commands."
- echo `date`
- echo `pwd`
- echo `ls -lR`
- echo `ls docs/_build/html/api_reference.html`
- echo "Fixing the table links"
- sed -i -E 's/a href="(.*)\.md"/a href="\1\.html"/g' docs/_build/html/api_reference.html
- cd docs
- bash ./fix_table_links.sh
- cd ..

0 comments on commit fc0783f

Please sign in to comment.