Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Setup docs publishing to GitHub Pages #832

Merged
merged 9 commits into from
Feb 16, 2024

Conversation

setu4993
Copy link
Member

Shortcut: https://app.shortcut.com/galileo/story/12701/dq-move-docs-to-github-pages

Description: I'm refactoring how we build the docs to make it cleaner and less hard-coded. We're also moving the publishing of the docs to GitHub Pages to http://dataquality.docs.rungalileo.io/.

Changes:

  • chore: Remove autodocs dir
  • chore(deps): Add autodoc-pydantic
  • chore: Update docs generation task to generate HTML output
  • chore: Update docs config
  • feat: Add logo
  • chore: Ignore docs build output
  • chore: Generate docs source files
  • chore: Update docs workflow to write to dataquality-docs

Tests:

  • Local.
Screenshot 2024-02-15 at 7 32 30 PM

@setu4993 setu4993 requested review from dcaustin33 and a team as code owners February 16, 2024 03:33
@@ -0,0 +1,48 @@
name: Publish Docs
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helps align the workflow to our other repos. I renamed the file but git thinks I deleted and created a new one 🤷🏽‍♂️.

@@ -0,0 +1,59 @@
# Configuration file for the Sphinx documentation builder.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches most of the old config but removes redundant pieces and cleans it up a bit.

@@ -0,0 +1,29 @@
dataquality.clients package
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the RST files are auto-generated.

@@ -65,7 +65,8 @@ doc = [
"myst-parser",
"sphinx-markdown-builder",
"sphinx-autobuild",
"sphinx-markdown-builder"
"sphinx-markdown-builder",
"autodoc-pydantic"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this package.

)
ctx.run("sphinx-apidoc -f -o docs/source/ dataquality/", pty=True, echo=True)
ctx.run("sphinx-build -M markdown docs/source docs/build/md", echo=True)
ctx.run("sphinx-build -b html docs/source/ docs/build/html", echo=True)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got rid of the Makefile and just writing down the actual command we need.

@setu4993
Copy link
Member Author

Copy link

This pull request has been linked to Shortcut Story #12701: [dq] Move docs to GitHub pages.

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (42e5e13) 86.37% compared to head (8563812) 86.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #832      +/-   ##
==========================================
+ Coverage   86.37%   86.40%   +0.02%     
==========================================
  Files         196      196              
  Lines       15836    15848      +12     
==========================================
+ Hits        13679    13694      +15     
+ Misses       2157     2154       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@elboy3 elboy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this replace sphinx? Would love to get rid of that

@setu4993
Copy link
Member Author

Does this replace sphinx? Would love to get rid of that

It uses Sphinx. Curious why?

@setu4993 setu4993 merged commit bb47710 into main Feb 16, 2024
5 checks passed
@setu4993 setu4993 deleted the chore/docs/gh-pages branch February 16, 2024 16:25
setu4993 added a commit that referenced this pull request Feb 16, 2024
…blic repo (#834)

**Description:** `workflow_dispatch` is a terrible idea when in a public
repo.

I had added it so that I could debug in case the run after #832 failed.
It didn't so we can remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants