Skip to content

Commit ec2b2d9

Browse files
committed
Update at 2025-08-13T07:03:31.277Z
1 parent dc2ed95 commit ec2b2d9

22 files changed

Lines changed: 1197 additions & 1047 deletions
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build and Deploy TA-Lib Docs
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.10'
23+
24+
- name: Install uv
25+
run: |
26+
pip install uv
27+
28+
- name: Install system dependencies (TA-Lib C library)
29+
run: |
30+
wget https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz
31+
tar -xzf ta-lib-0.6.4-src.tar.gz
32+
cd ta-lib-0.6.4/
33+
./configure --prefix=/usr
34+
make
35+
sudo make install
36+
37+
- name: Install Python dependencies
38+
run: |
39+
uv venv
40+
source .venv/bin/activate
41+
uv pip install -r requirements_dev.txt
42+
uv pip install TA-Lib
43+
uv pip install Pygments
44+
45+
- name: Generate HTML files
46+
run: |
47+
source .venv/bin/activate
48+
uv run python docs/generate_html_pages.py _site
49+
cd _site
50+
mkdir stylesheets
51+
uv run pygmentize -f html -S github-dark -a .highlight > stylesheets/pygments_style.css
52+
cp ../ta-lib-python-zh/stylesheet.css stylesheets/stylesheet.css
53+
54+
- name: Deploy to Site Branch
55+
uses: peaceiris/actions-gh-pages@v3
56+
with:
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
publish_dir: ./_site
59+
publish_branch: _site
60+
force_orphan: true

.github/workflows/tests.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/wheels.yml

Lines changed: 0 additions & 249 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ docs/.tadoc.org.html
55
build/
66
dist/
77
*.so
8-
.*
9-
*~
108
*.egg-info/
119

0 commit comments

Comments
 (0)