Skip to content

Commit 7d4a40c

Browse files
Fix Docs (apache#676)
1 parent c6bdc9f commit 7d4a40c

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.github/workflows/docs.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- main
55
tags-ignore:
66
- "**-rc**"
7+
pull_request:
8+
branches:
9+
- main
710

811
name: Deploy DataFusion Python site
912

@@ -13,6 +16,7 @@ jobs:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Set target branch
19+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
1620
id: target-branch
1721
run: |
1822
set -x
@@ -27,6 +31,7 @@ jobs:
2731
- name: Checkout docs sources
2832
uses: actions/checkout@v3
2933
- name: Checkout docs target branch
34+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3035
uses: actions/checkout@v3
3136
with:
3237
fetch-depth: 0
@@ -64,6 +69,7 @@ jobs:
6469
make html
6570
6671
- name: Copy & push the generated HTML
72+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6773
run: |
6874
set -x
6975
cd docs-target

docs/source/api/object_store.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
.. currentmodule:: datafusion.object_store
2020

2121
ObjectStore
22-
=========
22+
===========
2323

2424
.. autosummary::
2525
:toctree: ../generated/

docs/source/user-guide/common-operations/functions.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,12 @@ DataFusion offers a range of helpful options.
9292
f.left(col('"Name"'), literal(4)).alias("code")
9393
)
9494
95-
This also includes the functions for regular expressions :func:`.regexp_replace` and :func:`.regexp_match`
95+
This also includes the functions for regular expressions like :func:`.regexp_match`
9696

9797
.. ipython:: python
9898
9999
df.select(
100100
f.regexp_match(col('"Name"'), literal("Char")).alias("dragons"),
101-
f.regexp_replace(col('"Name"'), literal("saur"), literal("fleur")).alias("flowers")
102101
)
103102
104103

docs/source/user-guide/configuration.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.. under the License.
1717
1818
Configuration
19-
========
19+
=============
2020

2121
Let's look at how we can configure DataFusion. When creating a :code:`SessionContext`, you can pass in
2222
a :code:`SessionConfig` and :code:`RuntimeConfig` object. These two cover a wide range of options.
@@ -48,4 +48,4 @@ a :code:`SessionConfig` and :code:`RuntimeConfig` object. These two cover a wide
4848
4949
5050
You can read more about available :code:`SessionConfig` options `here <https://arrow.apache.org/datafusion/user-guide/configs.html>`_,
51-
and about :code:`RuntimeConfig` options `here https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeConfig.html`_.
51+
and about :code:`RuntimeConfig` options `here <https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeConfig.html>`_.

0 commit comments

Comments
 (0)