Skip to content

Commit 18c643e

Browse files
Merge pull request #40 from LLMSQL/page
Front_page
2 parents f17854d + 94b8cf1 commit 18c643e

28 files changed

+2647
-1485
lines changed

.github/workflows/docs.yml

Lines changed: 72 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,90 @@
1-
name: Deploy Sphinx docs to GitHub Pages
1+
name: Build & Deploy Sphinx Docs
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- page
7+
- main
8+
pull_request:
9+
branches:
10+
- main
611

712
permissions:
813
contents: read
914
pages: write
1015
id-token: write
1116

1217
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: "3.11"
27+
28+
- name: Install dependencies
29+
run: |
30+
pip install -r docs/requirements.txt
31+
32+
- name: Build Sphinx docs
33+
run: |
34+
cd docs
35+
python -m sphinx -b html . _build/html
36+
37+
- name: Upload artifact (HTML for preview)
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: docs-html
41+
path: docs/_build/html
42+
43+
preview:
44+
if: github.ref == 'refs/heads/page'
45+
needs: build
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Download built docs
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: docs-html
52+
path: ./docs/_build/html
53+
54+
- name: Configure GitHub Pages preview
55+
uses: actions/configure-pages@v4
56+
57+
- name: Upload Pages artifact
58+
uses: actions/upload-pages-artifact@v3
59+
with:
60+
path: ./docs/_build/html
61+
62+
- name: Deploy preview
63+
id: deployment
64+
uses: actions/deploy-pages@v4
65+
1366
deploy:
67+
if: github.ref == 'refs/heads/main'
68+
needs: build
69+
runs-on: ubuntu-latest
1470
environment:
1571
name: github-pages
1672
url: ${{ steps.deployment.outputs.page_url }}
17-
runs-on: ubuntu-latest
1873
steps:
19-
- uses: actions/checkout@v4
74+
- name: Download built docs
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: docs-html
78+
path: ./docs/_build/html
2079

21-
- name: Setup Pages
22-
uses: actions/configure-pages@v4
80+
- name: Setup Pages
81+
uses: actions/configure-pages@v4
2382

24-
- name: Upload artifact
25-
uses: actions/upload-pages-artifact@v3
26-
with:
27-
path: ./docs/_build
83+
- name: Upload artifact
84+
uses: actions/upload-pages-artifact@v3
85+
with:
86+
path: ./docs/_build/html
2887

29-
- name: Deploy to GitHub Pages
30-
id: deployment
31-
uses: actions/deploy-pages@v4
88+
- name: Deploy to GitHub Pages
89+
id: deployment
90+
uses: actions/deploy-pages@v4

docs/_build/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 6ee7cd5529e806f473de3323ad247c53
3+
config: a32d920eac3b9747d56b69f1dc98ea4c
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_build/html/.buildinfo.bak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: de581c93e813643e7cc922a04766d3b7
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
-3.98 KB
Binary file not shown.
-5.63 KB
Binary file not shown.
Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1 @@
1-
.. LLMSQL documentation master file, created by
2-
sphinx-quickstart on Wed Sep 24 11:41:44 2025.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
6-
Welcome to LLMSQL project
7-
==========================
8-
9-
.. image:: https://img.shields.io/pypi/v/llmsql
10-
:target: https://pypi.org/project/llmsql/
11-
12-
LLMSQL is a Python package for SQL reasoning with LLMs and vLLM inference.
13-
14-
🚀 Features
15-
-----------
16-
- Easy vLLM inference integration
17-
- Evaluator utilities
18-
- HuggingFace + TRL support
19-
20-
📦 Installation
21-
---------------
22-
.. code-block:: bash
23-
24-
pip3 install llmsql
25-
26-
🔗 Resources
27-
------------
28-
- `Source code on GitHub <https://github.com/LLMSQL/llmsql-benchmark>`_
29-
- `PyPI project <https://pypi.org/project/llmsql/>`_
30-
- `Dataset on Hugging Face <https://huggingface.co/llmsql-bench>`_
31-
- `Example Usages <https://github.com/LLMSQL/llmsql-benchmark/tree/main/examples>`_
32-
33-
34-
.. toctree::
35-
:maxdepth: 2
36-
:caption: Contents:
1+
.. This file exists only because Sphinx requires index.rst

0 commit comments

Comments
 (0)