Skip to content

Commit 17b9dab

Browse files
committed
warning + workflows
1 parent f076e36 commit 17b9dab

File tree

14 files changed

+369
-335
lines changed

14 files changed

+369
-335
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 # тестовая ветка для preview
7+
- main # production deploy
8+
pull_request:
9+
branches:
10+
- main # проверка перед merge
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: f0951d5432eef154e25aad70f2f8dd99
3+
config: a32d920eac3b9747d56b69f1dc98ea4c
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
-1.87 KB
Binary file not shown.
-416 Bytes
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
.. raw:: html
2-
:file: front_page.html
1+
.. This file exists only because Sphinx requires index.rst

docs/_build/html/_static/basic.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ table.modindextable td {
211211
/* -- general body styles --------------------------------------------------- */
212212

213213
div.body {
214-
min-width: inherit;
214+
min-width: 360px;
215215
max-width: 800px;
216216
}
217217

docs/_build/html/_static/pygments.css

Lines changed: 1 addition & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -4,81 +4,4 @@ span.linenos { color: inherit; background-color: transparent; padding-left: 5px;
44
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
55
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
66
.highlight .hll { background-color: #ffffcc }
7-
.highlight { background: #f8f8f8; }
8-
.highlight .c { color: #8F5902; font-style: italic } /* Comment */
9-
.highlight .err { color: #A40000; border: 1px solid #EF2929 } /* Error */
10-
.highlight .g { color: #000 } /* Generic */
11-
.highlight .k { color: #004461; font-weight: bold } /* Keyword */
12-
.highlight .l { color: #000 } /* Literal */
13-
.highlight .n { color: #000 } /* Name */
14-
.highlight .o { color: #582800 } /* Operator */
15-
.highlight .x { color: #000 } /* Other */
16-
.highlight .p { color: #000; font-weight: bold } /* Punctuation */
17-
.highlight .ch { color: #8F5902; font-style: italic } /* Comment.Hashbang */
18-
.highlight .cm { color: #8F5902; font-style: italic } /* Comment.Multiline */
19-
.highlight .cp { color: #8F5902 } /* Comment.Preproc */
20-
.highlight .cpf { color: #8F5902; font-style: italic } /* Comment.PreprocFile */
21-
.highlight .c1 { color: #8F5902; font-style: italic } /* Comment.Single */
22-
.highlight .cs { color: #8F5902; font-style: italic } /* Comment.Special */
23-
.highlight .gd { color: #A40000 } /* Generic.Deleted */
24-
.highlight .ge { color: #000; font-style: italic } /* Generic.Emph */
25-
.highlight .ges { color: #000 } /* Generic.EmphStrong */
26-
.highlight .gr { color: #EF2929 } /* Generic.Error */
27-
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
28-
.highlight .gi { color: #00A000 } /* Generic.Inserted */
29-
.highlight .go { color: #888 } /* Generic.Output */
30-
.highlight .gp { color: #745334 } /* Generic.Prompt */
31-
.highlight .gs { color: #000; font-weight: bold } /* Generic.Strong */
32-
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
33-
.highlight .gt { color: #A40000; font-weight: bold } /* Generic.Traceback */
34-
.highlight .kc { color: #004461; font-weight: bold } /* Keyword.Constant */
35-
.highlight .kd { color: #004461; font-weight: bold } /* Keyword.Declaration */
36-
.highlight .kn { color: #004461; font-weight: bold } /* Keyword.Namespace */
37-
.highlight .kp { color: #004461; font-weight: bold } /* Keyword.Pseudo */
38-
.highlight .kr { color: #004461; font-weight: bold } /* Keyword.Reserved */
39-
.highlight .kt { color: #004461; font-weight: bold } /* Keyword.Type */
40-
.highlight .ld { color: #000 } /* Literal.Date */
41-
.highlight .m { color: #900 } /* Literal.Number */
42-
.highlight .s { color: #4E9A06 } /* Literal.String */
43-
.highlight .na { color: #C4A000 } /* Name.Attribute */
44-
.highlight .nb { color: #004461 } /* Name.Builtin */
45-
.highlight .nc { color: #000 } /* Name.Class */
46-
.highlight .no { color: #000 } /* Name.Constant */
47-
.highlight .nd { color: #888 } /* Name.Decorator */
48-
.highlight .ni { color: #CE5C00 } /* Name.Entity */
49-
.highlight .ne { color: #C00; font-weight: bold } /* Name.Exception */
50-
.highlight .nf { color: #000 } /* Name.Function */
51-
.highlight .nl { color: #F57900 } /* Name.Label */
52-
.highlight .nn { color: #000 } /* Name.Namespace */
53-
.highlight .nx { color: #000 } /* Name.Other */
54-
.highlight .py { color: #000 } /* Name.Property */
55-
.highlight .nt { color: #004461; font-weight: bold } /* Name.Tag */
56-
.highlight .nv { color: #000 } /* Name.Variable */
57-
.highlight .ow { color: #004461; font-weight: bold } /* Operator.Word */
58-
.highlight .pm { color: #000; font-weight: bold } /* Punctuation.Marker */
59-
.highlight .w { color: #F8F8F8 } /* Text.Whitespace */
60-
.highlight .mb { color: #900 } /* Literal.Number.Bin */
61-
.highlight .mf { color: #900 } /* Literal.Number.Float */
62-
.highlight .mh { color: #900 } /* Literal.Number.Hex */
63-
.highlight .mi { color: #900 } /* Literal.Number.Integer */
64-
.highlight .mo { color: #900 } /* Literal.Number.Oct */
65-
.highlight .sa { color: #4E9A06 } /* Literal.String.Affix */
66-
.highlight .sb { color: #4E9A06 } /* Literal.String.Backtick */
67-
.highlight .sc { color: #4E9A06 } /* Literal.String.Char */
68-
.highlight .dl { color: #4E9A06 } /* Literal.String.Delimiter */
69-
.highlight .sd { color: #8F5902; font-style: italic } /* Literal.String.Doc */
70-
.highlight .s2 { color: #4E9A06 } /* Literal.String.Double */
71-
.highlight .se { color: #4E9A06 } /* Literal.String.Escape */
72-
.highlight .sh { color: #4E9A06 } /* Literal.String.Heredoc */
73-
.highlight .si { color: #4E9A06 } /* Literal.String.Interpol */
74-
.highlight .sx { color: #4E9A06 } /* Literal.String.Other */
75-
.highlight .sr { color: #4E9A06 } /* Literal.String.Regex */
76-
.highlight .s1 { color: #4E9A06 } /* Literal.String.Single */
77-
.highlight .ss { color: #4E9A06 } /* Literal.String.Symbol */
78-
.highlight .bp { color: #3465A4 } /* Name.Builtin.Pseudo */
79-
.highlight .fm { color: #000 } /* Name.Function.Magic */
80-
.highlight .vc { color: #000 } /* Name.Variable.Class */
81-
.highlight .vg { color: #000 } /* Name.Variable.Global */
82-
.highlight .vi { color: #000 } /* Name.Variable.Instance */
83-
.highlight .vm { color: #000 } /* Name.Variable.Magic */
84-
.highlight .il { color: #900 } /* Literal.Number.Integer.Long */
7+
.highlight { background: #ffffff; }

docs/_build/html/genindex.html

Lines changed: 32 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,30 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Index &#8212; LLMSQL 0.2.0 documentation</title>
8-
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=5ecbeea2" />
9-
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=b08954a9" />
10-
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=27fed22d" />
11-
<link rel="stylesheet" type="text/css" href="_static/styles/front_page.css" />
8+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8e8a900e" />
9+
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=29da98fa" />
10+
<link rel="stylesheet" type="text/css" href="_static/styles/front_page.css?v=46e78057" />
1211
<script src="_static/documentation_options.js?v=938c9ccc"></script>
1312
<script src="_static/doctools.js?v=9bcbadda"></script>
1413
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
15-
<script src="_static/scripts/front_page.js"></script>
14+
<script src="_static/scripts/front_page.js?v=a59558f4"></script>
1615
<link rel="index" title="Index" href="#" />
17-
<link rel="search" title="Search" href="search.html" />
18-
19-
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
20-
21-
22-
23-
24-
16+
<link rel="search" title="Search" href="search.html" />
2517
</head><body>
26-
18+
<div class="related" role="navigation" aria-label="Related">
19+
<h3>Navigation</h3>
20+
<ul>
21+
<li class="right" style="margin-right: 10px">
22+
<a href="#" title="General Index"
23+
accesskey="I">index</a></li>
24+
<li class="nav-item nav-item-0"><a href="index.html">LLMSQL 0.2.0 documentation</a> &#187;</li>
25+
<li class="nav-item nav-item-this"><a href="">Index</a></li>
26+
</ul>
27+
</div>
2728

2829
<div class="document">
2930
<div class="documentwrapper">
3031
<div class="bodywrapper">
31-
32-
3332
<div class="body" role="main">
3433

3534

@@ -40,62 +39,39 @@ <h1 id="index">Index</h1>
4039
</div>
4140

4241

42+
<div class="clearer"></div>
4343
</div>
44-
4544
</div>
4645
</div>
4746
<div class="sphinxsidebar" role="navigation" aria-label="Main">
4847
<div class="sphinxsidebarwrapper">
49-
<h1 class="logo"><a href="index.html">LLMSQL</a></h1>
50-
51-
52-
53-
54-
55-
56-
57-
58-
5948
<search id="searchbox" style="display: none" role="search">
49+
<h3 id="searchlabel">Quick search</h3>
6050
<div class="searchformwrapper">
6151
<form class="search" action="search.html" method="get">
62-
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
52+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
6353
<input type="submit" value="Go" />
6454
</form>
6555
</div>
6656
</search>
67-
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
68-
69-
<div class="relations">
70-
<h3>Related Topics</h3>
71-
<ul>
72-
<li><a href="index.html">Documentation overview</a><ul>
73-
</ul></li>
74-
</ul>
75-
</div>
76-
77-
78-
79-
80-
81-
82-
83-
57+
<script>document.getElementById('searchbox').style.display = "block"</script>
8458
</div>
8559
</div>
8660
<div class="clearer"></div>
8761
</div>
88-
<div class="footer">
89-
&#169;2025, Dzmitry Pihulski.
90-
91-
|
92-
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.3</a>
93-
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>
94-
62+
<div class="related" role="navigation" aria-label="Related">
63+
<h3>Navigation</h3>
64+
<ul>
65+
<li class="right" style="margin-right: 10px">
66+
<a href="#" title="General Index"
67+
>index</a></li>
68+
<li class="nav-item nav-item-0"><a href="index.html">LLMSQL 0.2.0 documentation</a> &#187;</li>
69+
<li class="nav-item nav-item-this"><a href="">Index</a></li>
70+
</ul>
71+
</div>
72+
<div class="footer" role="contentinfo">
73+
&#169; Copyright 2025, Dzmitry Pihulski.
74+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.
9575
</div>
96-
97-
98-
99-
10076
</body>
10177
</html>

0 commit comments

Comments
 (0)