Skip to content

Commit

Permalink
Generate static documentation pages & update the CI (#1116)
Browse files Browse the repository at this point in the history
* Generate static documentation pages & update the CI

* Change CI so that changes are committed & pushed

* Make it so that only python v3.10 triggers doc generation

* Fix yaml syntax

* PR feedback, fix push action
  • Loading branch information
georgesittas authored Feb 7, 2023
1 parent 2e7cf05 commit e40ef9a
Show file tree
Hide file tree
Showing 67 changed files with 140,860 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,17 @@ jobs:
python -m pip install --upgrade pip
make install-dev
- name: Run checks (linter, code style, tests)
run: make check
- name: Update documentation
run: |
make check
make docs
git add docs
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "CI: Auto-generated documentation" -a | exit 0
if: ${{ matrix.python-version == '3.10' && github.event_name == 'push' }}
- name: Push changes
if: ${{ matrix.python-version == '3.10' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ style:
check: style test

docs:
python pdoc/cli.py -o pdoc/docs
python pdoc/cli.py -o docs

docs-serve:
python pdoc/cli.py
7 changes: 7 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./sqlglot.html"/>
</head>
</html>
46 changes: 46 additions & 0 deletions docs/search.js

Large diffs are not rendered by default.

1,226 changes: 1,226 additions & 0 deletions docs/sqlglot.html

Large diffs are not rendered by default.

506 changes: 506 additions & 0 deletions docs/sqlglot/dataframe.html

Large diffs are not rendered by default.

4,953 changes: 4,953 additions & 0 deletions docs/sqlglot/dataframe/sql.html

Large diffs are not rendered by default.

400 changes: 400 additions & 0 deletions docs/sqlglot/dialects.html

Large diffs are not rendered by default.

1,919 changes: 1,919 additions & 0 deletions docs/sqlglot/dialects/bigquery.html

Large diffs are not rendered by default.

1,565 changes: 1,565 additions & 0 deletions docs/sqlglot/dialects/clickhouse.html

Large diffs are not rendered by default.

1,094 changes: 1,094 additions & 0 deletions docs/sqlglot/dialects/databricks.html

Large diffs are not rendered by default.

8,388 changes: 8,388 additions & 0 deletions docs/sqlglot/dialects/dialect.html

Large diffs are not rendered by default.

1,530 changes: 1,530 additions & 0 deletions docs/sqlglot/dialects/drill.html

Large diffs are not rendered by default.

1,489 changes: 1,489 additions & 0 deletions docs/sqlglot/dialects/duckdb.html

Large diffs are not rendered by default.

2,006 changes: 2,006 additions & 0 deletions docs/sqlglot/dialects/hive.html

Large diffs are not rendered by default.

2,931 changes: 2,931 additions & 0 deletions docs/sqlglot/dialects/mysql.html

Large diffs are not rendered by default.

1,498 changes: 1,498 additions & 0 deletions docs/sqlglot/dialects/oracle.html

Large diffs are not rendered by default.

1,723 changes: 1,723 additions & 0 deletions docs/sqlglot/dialects/postgres.html

Large diffs are not rendered by default.

1,751 changes: 1,751 additions & 0 deletions docs/sqlglot/dialects/presto.html

Large diffs are not rendered by default.

1,660 changes: 1,660 additions & 0 deletions docs/sqlglot/dialects/redshift.html

Large diffs are not rendered by default.

1,987 changes: 1,987 additions & 0 deletions docs/sqlglot/dialects/snowflake.html

Large diffs are not rendered by default.

1,632 changes: 1,632 additions & 0 deletions docs/sqlglot/dialects/spark.html

Large diffs are not rendered by default.

1,350 changes: 1,350 additions & 0 deletions docs/sqlglot/dialects/sqlite.html

Large diffs are not rendered by default.

1,365 changes: 1,365 additions & 0 deletions docs/sqlglot/dialects/starrocks.html

Large diffs are not rendered by default.

1,792 changes: 1,792 additions & 0 deletions docs/sqlglot/dialects/tableau.html

Large diffs are not rendered by default.

2,126 changes: 2,126 additions & 0 deletions docs/sqlglot/dialects/teradata.html

Large diffs are not rendered by default.

1,070 changes: 1,070 additions & 0 deletions docs/sqlglot/dialects/trino.html

Large diffs are not rendered by default.

2,366 changes: 2,366 additions & 0 deletions docs/sqlglot/dialects/tsql.html

Large diffs are not rendered by default.

1,560 changes: 1,560 additions & 0 deletions docs/sqlglot/diff.html

Large diffs are not rendered by default.

799 changes: 799 additions & 0 deletions docs/sqlglot/errors.html

Large diffs are not rendered by default.

694 changes: 694 additions & 0 deletions docs/sqlglot/executor.html

Large diffs are not rendered by default.

715 changes: 715 additions & 0 deletions docs/sqlglot/executor/context.html

Large diffs are not rendered by default.

717 changes: 717 additions & 0 deletions docs/sqlglot/executor/env.html

Large diffs are not rendered by default.

6,156 changes: 6,156 additions & 0 deletions docs/sqlglot/executor/python.html

Large diffs are not rendered by default.

802 changes: 802 additions & 0 deletions docs/sqlglot/executor/table.html

Large diffs are not rendered by default.

38,583 changes: 38,583 additions & 0 deletions docs/sqlglot/expressions.html

Large diffs are not rendered by default.

9,788 changes: 9,788 additions & 0 deletions docs/sqlglot/generator.html

Large diffs are not rendered by default.

1,651 changes: 1,651 additions & 0 deletions docs/sqlglot/helper.html

Large diffs are not rendered by default.

930 changes: 930 additions & 0 deletions docs/sqlglot/lineage.html

Large diffs are not rendered by default.

263 changes: 263 additions & 0 deletions docs/sqlglot/optimizer.html

Large diffs are not rendered by default.

1,146 changes: 1,146 additions & 0 deletions docs/sqlglot/optimizer/annotate_types.html

Large diffs are not rendered by default.

445 changes: 445 additions & 0 deletions docs/sqlglot/optimizer/canonicalize.html

Large diffs are not rendered by default.

371 changes: 371 additions & 0 deletions docs/sqlglot/optimizer/eliminate_ctes.html

Large diffs are not rendered by default.

610 changes: 610 additions & 0 deletions docs/sqlglot/optimizer/eliminate_joins.html

Large diffs are not rendered by default.

582 changes: 582 additions & 0 deletions docs/sqlglot/optimizer/eliminate_subqueries.html

Large diffs are not rendered by default.

321 changes: 321 additions & 0 deletions docs/sqlglot/optimizer/expand_multi_table_selects.html

Large diffs are not rendered by default.

317 changes: 317 additions & 0 deletions docs/sqlglot/optimizer/isolate_table_selects.html

Large diffs are not rendered by default.

430 changes: 430 additions & 0 deletions docs/sqlglot/optimizer/lower_identities.html

Large diffs are not rendered by default.

794 changes: 794 additions & 0 deletions docs/sqlglot/optimizer/merge_subqueries.html

Large diffs are not rendered by default.

585 changes: 585 additions & 0 deletions docs/sqlglot/optimizer/normalize.html

Large diffs are not rendered by default.

489 changes: 489 additions & 0 deletions docs/sqlglot/optimizer/optimize_joins.html

Large diffs are not rendered by default.

398 changes: 398 additions & 0 deletions docs/sqlglot/optimizer/optimizer.html

Large diffs are not rendered by default.

773 changes: 773 additions & 0 deletions docs/sqlglot/optimizer/pushdown_predicates.html

Large diffs are not rendered by default.

456 changes: 456 additions & 0 deletions docs/sqlglot/optimizer/pushdown_projections.html

Large diffs are not rendered by default.

769 changes: 769 additions & 0 deletions docs/sqlglot/optimizer/qualify_columns.html

Large diffs are not rendered by default.

409 changes: 409 additions & 0 deletions docs/sqlglot/optimizer/qualify_tables.html

Large diffs are not rendered by default.

2,408 changes: 2,408 additions & 0 deletions docs/sqlglot/optimizer/scope.html

Large diffs are not rendered by default.

1,428 changes: 1,428 additions & 0 deletions docs/sqlglot/optimizer/simplify.html

Large diffs are not rendered by default.

835 changes: 835 additions & 0 deletions docs/sqlglot/optimizer/unnest_subqueries.html

Large diffs are not rendered by default.

8,001 changes: 8,001 additions & 0 deletions docs/sqlglot/parser.html

Large diffs are not rendered by default.

1,995 changes: 1,995 additions & 0 deletions docs/sqlglot/planner.html

Large diffs are not rendered by default.

1,624 changes: 1,624 additions & 0 deletions docs/sqlglot/schema.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions docs/sqlglot/serde.html

Large diffs are not rendered by default.

385 changes: 385 additions & 0 deletions docs/sqlglot/time.html

Large diffs are not rendered by default.

2,683 changes: 2,683 additions & 0 deletions docs/sqlglot/tokens.html

Large diffs are not rendered by default.

667 changes: 667 additions & 0 deletions docs/sqlglot/transforms.html

Large diffs are not rendered by default.

479 changes: 479 additions & 0 deletions docs/sqlglot/trie.html

Large diffs are not rendered by default.

0 comments on commit e40ef9a

Please sign in to comment.