Skip to content

Commit

Permalink
DRIVERS-2789 Trim RST files to Stubs (#1566)
Browse files Browse the repository at this point in the history
* DRIVERS-2789 Trim RST files to Stubs

* remove sphinx build check
  • Loading branch information
blink1073 committed Apr 22, 2024
1 parent b746fcc commit 47c97fb
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 26,895 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,3 @@ jobs:
echo " pre-commit run"
echo "or after-the-fact on already committed files with"
echo " pre-commit run --all-files --hook-stage manual"
sphinx-build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- run: pip install sphinx
- run: cd source && sphinx-build -W -b text . docs_build index.rst
11 changes: 3 additions & 8 deletions scripts/migrate_to_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@
.. note::
This specification has been converted to Markdown and renamed to
`{0} <{0}>`_.
Use the link above to access the latest version of the specification as the
current reStructuredText file will no longer be updated.
"""

# Update the RST file with a pointer to the MD file.
# Update the RST file with a stub pointer to the MD file.
if not path.name == 'README.rst':
new_lines = lines.copy()
new_lines.insert(0, TEMPLATE.format(os.path.basename(md_file)) )
new_body = TEMPLATE.format(os.path.basename(md_file))
with path.open('w') as fid:
fid.write(''.join(new_lines))
fid.write(''.join(new_body))

# Pre-process the file.
for (i, line) in enumerate(lines):
Expand Down
Loading

0 comments on commit 47c97fb

Please sign in to comment.