Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit fa9ce8f

Browse files
committed
seperate doc deploy workflow
1 parent 15b2268 commit fa9ce8f

File tree

6 files changed

+63
-18
lines changed

6 files changed

+63
-18
lines changed

.github/workflows/deploy-doc.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Doc
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
pull_request:
7+
branches:
8+
- main
9+
# For PR created by ghstack
10+
- gh/*/*/base
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Setup Python environment
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.7
24+
25+
- name: Check out source repository
26+
uses: actions/checkout@v2
27+
with:
28+
# ref: "release/0.1.0"
29+
submodules: recursive
30+
31+
- name: Install TorchArrow
32+
run: |
33+
pip install --pre torcharrow -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
34+
35+
- name: Build the docs
36+
run: |
37+
cd ./docs
38+
pip install -r requirements.txt --user
39+
make html
40+
cd ..
41+
42+
- name: Deploy Docs on Push
43+
uses: JamesIves/github-pages-deploy-action@releases/v3
44+
with:
45+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
BRANCH: gh-pages # The branch the action should deploy to.
47+
FOLDER: docs/build/html # The folder the action should deploy.
48+
TARGET_FOLDER: 0.1.0

.github/workflows/ubuntu.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,3 @@ jobs:
7777
- name : Install TorchArrow
7878
run: |
7979
CCACHE_DIR=$GITHUB_WORKSPACE/.ccache python setup.py install --user
80-
81-
- name: Build the docs
82-
run: |
83-
cd ./docs
84-
pip3 install -r requirements.txt --user
85-
make html
86-
cd ..
87-
88-
- name: Deploy Docs on Push
89-
if: ${{ github.event_name == 'push' }}
90-
uses: JamesIves/github-pages-deploy-action@releases/v3
91-
with:
92-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93-
BRANCH: gh-pages # The branch the action should deploy to.
94-
FOLDER: docs/build/html # The folder the action should deploy.

docs/source/column.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Column class reference
4040
.. autosummary::
4141
:toctree: generated
4242
:nosignatures:
43+
:template: class.rst
4344

4445
Column.head
4546
Column.tail
@@ -73,6 +74,7 @@ NumericalColumn class reference
7374
.. autosummary::
7475
:toctree: generated
7576
:nosignatures:
77+
:template: class.rst
7678

7779
NumericalColumn.abs
7880
NumericalColumn.ceil
@@ -96,6 +98,7 @@ StringColumn class reference
9698
.. autosummary::
9799
:toctree: generated
98100
:nosignatures:
101+
:template: class.rst
99102

100103
istring_column.StringMethods.length
101104
istring_column.StringMethods.slice
@@ -131,6 +134,7 @@ ListColumn class reference
131134
.. autosummary::
132135
:toctree: generated
133136
:nosignatures:
137+
:template: class.rst
134138

135139
ilist_column.ListMethods.length
136140
ilist_column.ListMethods.slice

docs/source/dataframe.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ DataFrame Class and General APIs
2525
.. autosummary::
2626
:toctree: generated
2727
:nosignatures:
28+
:template: class.rst
2829

2930
DataFrame.head
3031
DataFrame.tail
@@ -42,6 +43,7 @@ Functional API
4243
.. autosummary::
4344
:toctree: generated
4445
:nosignatures:
46+
:template: function.rst
4547

4648
DataFrame.map
4749
DataFrame.filter
@@ -54,6 +56,7 @@ Relational API
5456
.. autosummary::
5557
:toctree: generated
5658
:nosignatures:
59+
:template: function.rst
5760

5861
DataFrame.select
5962
DataFrame.where
@@ -64,6 +67,7 @@ Data Cleaning
6467
.. autosummary::
6568
:toctree: generated
6669
:nosignatures:
70+
:template: function.rst
6771

6872
DataFrame.fill_null
6973
DataFrame.drop_null
@@ -74,6 +78,7 @@ Conversions
7478
.. autosummary::
7579
:toctree: generated
7680
:nosignatures:
81+
:template: function.rst
7782

7883
DataFrame.to_arrow
7984
DataFrame.to_tensor
@@ -85,6 +90,7 @@ Statistics
8590
.. autosummary::
8691
:toctree: generated
8792
:nosignatures:
93+
:template: function.rst
8894

8995
DataFrame.min
9096
DataFrame.max
@@ -100,5 +106,6 @@ Arithmtic Operations
100106
.. autosummary::
101107
:toctree: generated
102108
:nosignatures:
109+
:template: function.rst
103110

104111
DataFrame.log

docs/source/functional.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Recommendation Operations
3737
.. autosummary::
3838
:toctree: generated
3939
:nosignatures:
40+
:template: function.rst
4041

4142
bucketize
4243
sigrid_hash
@@ -55,5 +56,6 @@ High-level Operations
5556
.. autosummary::
5657
:toctree: generated
5758
:nosignatures:
59+
:template: function.rst
5860

5961
scale_to_0_1

docs/source/torcharrow.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ torcharrow
44
==========================
55

66
The torcharrow package contains data structures for two-dimensional, potentially heterogeneous tabular data,
7-
denoted as dataframe.
8-
It also defines relational operations over these dataframes.
7+
denoted as dataframe.
8+
It also defines relational operations over these dataframes.
99
Additionally, it provides utilities for conversion with other formats (especially zero-copy conversion with Arrow arrays),
1010
and other useful utilities.
1111

@@ -28,4 +28,3 @@ Mutating Ops
2828

2929
concat
3030
if_else
31-

0 commit comments

Comments
 (0)