Skip to content

Commit 898c247

Browse files
committed
Dev : Docs Updating
1 parent 86aad03 commit 898c247

File tree

3 files changed

+177
-1
lines changed

3 files changed

+177
-1
lines changed

mkdocs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
site_name: AutoCAD Python Library
22
site_description: Comprehensive Python interface for AutoCAD automation and manipulation
33
site_author: Jones Peter
4-
site_url: https://autocad-python.com
4+
site_url: https://jsweb-tech.github.io/AutoCAD/
55
repo_url: https://github.com/Jsweb-Tech/AutoCAD
66
repo_name: Jsweb-Tech/AutoCAD
77
edit_uri: edit/main/docs/
88

99
theme:
1010
name: material
11+
custom_dir: overrides
12+
language: en
13+
logo: https://github.com/Jsweb-Tech/jsweb/blob/main/images/jsweb_logo_bg.png?raw=true
14+
favicon: https://github.com/Jsweb-Tech/jsweb/blob/main/images/jsweb_logo_bg.png?raw=true
1115
palette:
1216
- scheme: default
1317
primary: blue
@@ -39,6 +43,9 @@ plugins:
3943
- search
4044
- offline
4145

46+
extra_css:
47+
- stylesheets/extra.css
48+
4249
markdown_extensions:
4350
- admonition
4451
- pymdownx.details

overrides/main.html

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{% extends "base.html" %}
2+
3+
{% block footer %}
4+
<footer class="md-footer">
5+
<div class="md-footer-meta md-typeset">
6+
<div class="md-footer-meta__inner md-grid">
7+
<div class="md-footer-content">
8+
<div class="md-footer-section">
9+
<div class="md-footer-title">
10+
<strong>AutoCAD Python Library</strong>
11+
</div>
12+
<p>Professional Python interface for AutoCAD automation and manipulation</p>
13+
</div>
14+
<div class="md-footer-links">
15+
<div class="md-footer-link-group">
16+
<h4>Resources</h4>
17+
<ul>
18+
<li><a href="https://github.com/Jsweb-Tech/AutoCAD" target="_blank" rel="noopener">GitHub Repository</a></li>
19+
<li><a href="https://github.com/Jsweb-Tech/AutoCAD/issues" target="_blank" rel="noopener">Report Issues</a></li>
20+
<li><a href="https://github.com/Jsweb-Tech/AutoCAD/discussions" target="_blank" rel="noopener">Discussions</a></li>
21+
</ul>
22+
</div>
23+
<div class="md-footer-link-group">
24+
<h4>Connect</h4>
25+
<ul>
26+
<li><a href="https://github.com/Jsweb-Tech" target="_blank" rel="noopener">GitHub</a></li>
27+
<li><a href="https://www.linkedin.com/in/jones-peter-121157221/" target="_blank" rel="noopener">LinkedIn</a></li>
28+
<li><a href="https://www.instagram.com/jones_peter__/" target="_blank" rel="noopener">Instagram</a></li>
29+
</ul>
30+
</div>
31+
</div>
32+
</div>
33+
<div class="md-copyright">
34+
<div class="md-copyright__highlight">
35+
Copyright &copy; 2025 <a href="https://github.com/Jsweb-Tech" target="_blank" rel="noopener">JsWeb Tech</a> |
36+
<a href="https://github.com/Jsweb-Tech/AutoCAD/blob/master/LICENSE" target="_blank" rel="noopener">MIT License</a> |
37+
Built with <a href="https://www.mkdocs.org/" target="_blank" rel="noopener">MkDocs</a> &
38+
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">Material</a>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
43+
</footer>
44+
45+
<style>
46+
.md-footer-content {
47+
display: grid;
48+
grid-template-columns: 1fr 2fr;
49+
gap: 2rem;
50+
margin-bottom: 2rem;
51+
padding: 1rem 0;
52+
}
53+
54+
.md-footer-section {
55+
padding-right: 1rem;
56+
}
57+
58+
.md-footer-title {
59+
font-size: 1.2rem;
60+
margin-bottom: 0.5rem;
61+
color: var(--md-primary-fg-color);
62+
}
63+
64+
.md-footer-section p {
65+
margin: 0.5rem 0;
66+
color: var(--md-default-fg-color--light);
67+
font-size: 0.9rem;
68+
}
69+
70+
.md-footer-links {
71+
display: grid;
72+
grid-template-columns: 1fr 1fr;
73+
gap: 1.5rem;
74+
}
75+
76+
.md-footer-link-group h4 {
77+
margin: 0 0 0.75rem 0;
78+
font-size: 0.95rem;
79+
color: var(--md-primary-fg-color);
80+
font-weight: 600;
81+
}
82+
83+
.md-footer-link-group ul {
84+
list-style: none;
85+
margin: 0;
86+
padding: 0;
87+
}
88+
89+
.md-footer-link-group li {
90+
margin: 0.5rem 0;
91+
}
92+
93+
.md-footer-link-group a {
94+
color: var(--md-default-fg-color--light);
95+
text-decoration: none;
96+
transition: color 0.2s;
97+
font-size: 0.9rem;
98+
}
99+
100+
.md-footer-link-group a:hover {
101+
color: var(--md-primary-fg-color);
102+
text-decoration: underline;
103+
}
104+
105+
.md-copyright__highlight {
106+
font-size: 0.85rem;
107+
padding: 0.5rem 0;
108+
border-top: 1px solid var(--md-footer-border-color);
109+
text-align: center;
110+
}
111+
112+
.md-copyright__highlight a {
113+
color: var(--md-primary-fg-color);
114+
text-decoration: none;
115+
}
116+
117+
.md-copyright__highlight a:hover {
118+
text-decoration: underline;
119+
}
120+
121+
@media (max-width: 600px) {
122+
.md-footer-content {
123+
grid-template-columns: 1fr;
124+
gap: 1rem;
125+
}
126+
127+
.md-footer-links {
128+
grid-template-columns: 1fr;
129+
}
130+
131+
.md-footer-section {
132+
padding-right: 0;
133+
}
134+
}
135+
</style>
136+
{% endblock %}

overrides/stylesheets/extra.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Fix the footer to the bottom */
2+
.md-footer {
3+
bottom: 0;
4+
width: 100%;
5+
background-color: var(--md-footer-bg-color);
6+
z-index: 1;
7+
}
8+
9+
/*
10+
Header Title Fix:
11+
Always show the first topic (Site Title) and hide the second topic (Page Title).
12+
*/
13+
14+
/* Target the container for the titles */
15+
.md-header__title {
16+
/* Ensure the container is visible */
17+
opacity: 1 !important;
18+
}
19+
20+
/* 1. The Site Title (JsWeb) */
21+
.md-header__title .md-header__topic:first-child {
22+
opacity: 1 !important;
23+
transform: none !important;
24+
visibility: visible !important;
25+
display: block !important;
26+
width: auto !important;
27+
font-weight: bold !important;
28+
}
29+
30+
/* 2. The Page Title (e.g., Getting Started) */
31+
.md-header__title .md-header__topic:last-child {
32+
display: none !important;
33+
}

0 commit comments

Comments
 (0)