Skip to content

Commit 2002b88

Browse files
committed
Merge branch 'main' into release/0.2 and bumping to 0.2.1
2 parents 5a251e9 + 39af76c commit 2002b88

File tree

3 files changed

+254
-5
lines changed

3 files changed

+254
-5
lines changed

.github/workflows/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
retention-days: 7
6262

6363
- name: Deploy to gh-pages
64-
if: github.ref == 'refs/heads/main'
64+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
6565
uses: JamesIves/[email protected]
6666
with:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pyansys_sphinx_theme/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
# major, minor, patch
11-
version_info = 0, 2, 0
11+
version_info = 0, 2, 1
1212

1313
# Nice string for the version
1414
__version__ = '.'.join(map(str, version_info))

pyansys_sphinx_theme/static/css/theme.css

Lines changed: 252 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* Provided by the Sphinx base theme template at build time */
22
@import "../basic.css";
3+
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@600&display=swap');
4+
35

46
@font-face {
57
font-family: "Source Sans Pro Light";
@@ -11,7 +13,6 @@
1113
src: url(../fonts/SourceSansPro-Regular.ttf);
1214
}
1315

14-
1516
:root {
1617
/* Ansys colors */
1718
--ansysGold: 255, 183, 27; /* #FFB71B */
@@ -143,8 +144,9 @@
143144

144145
.docutils {
145146
color: #C89211;
146-
font-family: "Source Code Pro", "Courier New", monospace;
147+
font-family: 'Inconsolata';
147148
font-weight: bold;
149+
font-size: 15.5px;
148150
}
149151

150152
.sig-prename {
@@ -154,7 +156,7 @@
154156

155157
.sig-name.descname {
156158
color: #C89211;
157-
/* font-family: 'Source Sans Pro', sans-serif; */
159+
/* font-family: ' Source Sans Pro', sans-serif; */
158160
}
159161

160162
.sig-name {
@@ -166,3 +168,250 @@
166168
i.fa-github-square:before {
167169
color: #ffffff !important;
168170
}
171+
172+
/* Increase empty-space around classes, methods, properties, etc. that are descendants
173+
of other items */
174+
dl.class dl.py {
175+
margin-top: 2.5em;
176+
margin-bottom: 2.5em;
177+
}
178+
179+
/* Reduce empty-space around Notes and Examples headings */
180+
p.rubric {
181+
margin-top: 0.75em;
182+
margin-bottom: 0.75em;
183+
}
184+
185+
186+
187+
/*
188+
###############
189+
table
190+
###############
191+
*/
192+
193+
table {
194+
width:100%;
195+
max-width: 100%;
196+
border-spacing: 0;
197+
border-collapse: collapse;
198+
overflow: hidden;
199+
vertical-align: middle;
200+
201+
/* Disabling scroll bars */
202+
overflow-y: scroll;
203+
scrollbar-width: none; /* Firefox */
204+
-ms-overflow-style: none; /* Internet Explorer 10+ */
205+
}
206+
207+
tr {
208+
background-color: white;
209+
}
210+
211+
th {
212+
background-color: rgb(255, 183, 27, 0.55);
213+
}
214+
215+
tr:nth-child(odd){
216+
background-color: white;
217+
}
218+
219+
tr:nth-child(even){
220+
background-color: rgb(255, 183, 27, 0.15);
221+
}
222+
223+
/*
224+
#####################
225+
Table-centered
226+
#####################
227+
Same as table but with horizontally centered text.
228+
229+
230+
Use as:
231+
232+
.. table::
233+
:class: table-centered
234+
235+
+---------------------------+-------------------+
236+
| | MAPDL Command |
237+
+===========================+===================+
238+
| **GUI commands** | * ``*ASK`` |
239+
| +-------------------+
240+
| ...
241+
| ...
242+
243+
244+
*/
245+
table.table-centered {
246+
width:100%;
247+
max-width: 100%;
248+
border-spacing: 0;
249+
border-collapse: collapse;
250+
overflow: hidden;
251+
vertical-align: middle;
252+
text-align: center;
253+
254+
/* Disabling scroll bars */
255+
overflow-y: scroll;
256+
scrollbar-width: none; /* Firefox */
257+
-ms-overflow-style: none; /* Internet Explorer 10+ */
258+
}
259+
260+
.table-centered tr {
261+
background-color: white;
262+
text-align: center;
263+
}
264+
265+
.table-centered th {
266+
background-color: rgb(255, 183, 27, 0.55);
267+
text-align: center;
268+
}
269+
270+
.table-centered tr:nth-child(odd){
271+
text-align: center;
272+
background-color: white;
273+
}
274+
275+
.table-centered tr:nth-child(even){
276+
background-color: rgb(255, 183, 27, 0.15);
277+
text-align: center;
278+
}
279+
280+
281+
/*
282+
###############
283+
longtable
284+
###############
285+
*/
286+
287+
table.longtable tr:hover td {
288+
background-color: rgb(255, 183, 27, 0.6);
289+
}
290+
291+
/*
292+
#########################
293+
longtable-centered
294+
#########################
295+
296+
Use as:
297+
298+
299+
.. table::
300+
:class: longtable-centered
301+
302+
+---------------------------+-------------------+
303+
| | MAPDL Command |
304+
+===========================+===================+
305+
| **GUI commands** | * ``*ASK`` |
306+
| +-------------------+
307+
| ...
308+
| ...
309+
310+
*/
311+
312+
table.longtable-centered {
313+
text-align: center;
314+
}
315+
316+
.longtable-centered tr {
317+
text-align: center;
318+
}
319+
320+
.longtable-centered th {
321+
text-align: center;
322+
}
323+
324+
.longtable-centered tr:nth-child(odd){
325+
text-align: center;
326+
}
327+
328+
.longtable-centered tr:nth-child(even){
329+
text-align: center;
330+
}
331+
332+
table.longtable-centered tr:hover td {
333+
background-color: rgb(255, 183, 27, 0.6);
334+
text-align: center;
335+
}
336+
337+
/*
338+
##############
339+
DataFrame
340+
##############
341+
Not sure why the odd columns (white) are rendered gray.
342+
343+
I do not think we will be able to call this class.
344+
*/
345+
346+
.dataframe tr{
347+
background-color: white;
348+
}
349+
350+
.dataframe tr:nth-child(odd){
351+
background-color: white !important;
352+
}
353+
354+
.dataframe tr:nth-child(even){
355+
background-color: rgb(255, 183, 27, 0.15);
356+
}
357+
358+
.dataframe tr:hover td {
359+
background-color: rgb(255, 183, 27, 0.6);
360+
}
361+
362+
363+
/*
364+
#########################
365+
DataFrame-centered
366+
#########################
367+
Not sure why the odd columns (white) are rendered gray.
368+
369+
I do not think we will be able to call this class.
370+
*/
371+
372+
.dataframe-centered tr{
373+
background-color: white;
374+
text-align: center;
375+
}
376+
377+
.dataframe-centered tr:nth-child(odd){
378+
background-color: white !important;
379+
text-align: center;
380+
}
381+
382+
.dataframe-centered tr:nth-child(even){
383+
background-color: rgb(255, 183, 27, 0.15);
384+
text-align: center;
385+
}
386+
387+
.dataframe-centered tr:hover td {
388+
background-color: rgb(255, 183, 27, 0.6);
389+
text-align: center;
390+
}
391+
392+
.dataframe thead th {
393+
text-align: center;
394+
}
395+
396+
397+
398+
/*
399+
###############
400+
Autosummary
401+
###############
402+
*/
403+
/* .autosummary {
404+
text-align: left;
405+
} */
406+
407+
.autosummary tr:nth-child(odd){
408+
background-color: white;
409+
}
410+
411+
.autosummary tr:nth-child(even){
412+
background-color: white;
413+
}
414+
415+
416+
417+

0 commit comments

Comments
 (0)