# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
  configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
  install:
    - requirements: docs/requirements.readthedocs.txt

build:
  os: ubuntu-20.04
  tools:
    python: "3.8"
  jobs:
    post_build:
      - echo "Running post-build commands."
      - echo `date`
      - echo "Fixing the table links"
      - sed -i -E 's/a href="(.*)\.md"/a href="\1\.html"/g' _readthedocs/html/api_reference.html

# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
  configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
  install:
    - requirements: docs/requirements.readthedocs.txt

build:
  os: ubuntu-20.04
  tools:
    python: "3.8"
  jobs:
    post_build:
      - echo "Running post-build commands."
      - echo `date`
      - echo `pwd`
      - echo "Fixing the table links"
      - sed -i -E 's/a href="(.*)\.md"/a href="\1\.html"/g' _build/html/api_reference.html

Fix sed command to be relative directories.
Fix sed command to be relative directories.

Based on the commands seen in the readthedocs build: https://readthedocs.org/projects/openspiel/builds/17862150/

PiperOrigin-RevId: 469170801
Change-Id: I1f3d367d4ac1bf7174bf441481cb3dda81aca531
