Skip to content

Commit a07e57c

Browse files
committed
Merge branch 'main' into prompt-toolkit
2 parents d18fc47 + cb0c75e commit a07e57c

File tree

4 files changed

+16
-56
lines changed

4 files changed

+16
-56
lines changed

LICENSE

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2008-2025 Catherine Devlin and others
3+
Copyright (c) 2008-2026 Catherine Devlin and others
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6+
associated documentation files (the "Software"), to deal in the Software without restriction,
7+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
8+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
109
furnished to do so, subject to the following conditions:
1110

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
11+
The above copyright notice and this permission notice shall be included in all copies or substantial
12+
portions of the Software.
1413

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
15+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
17+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

docs/javascripts/readthedocs.js

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,8 @@
11
document.addEventListener("DOMContentLoaded", function (event) {
22
// Trigger Read the Docs' search addon instead of Zensical default
3-
document.querySelector(".md-search__input").addEventListener("focus", (e) => {
3+
document.querySelector(".md-search").addEventListener("click", (e) => {
4+
e.preventDefault();
45
const event = new CustomEvent("readthedocs-search-show");
56
document.dispatchEvent(event);
67
});
78
});
8-
9-
// Use CustomEvent to generate the version selector
10-
document.addEventListener("readthedocs-addons-data-ready", function (event) {
11-
const config = event.detail.data();
12-
const versioning = `
13-
<div class="md-version">
14-
<button class="md-version__current" aria-label="Select version">
15-
${config.versions.current.slug}
16-
</button>
17-
18-
<ul class="md-version__list">
19-
${config.versions.active
20-
.map(
21-
(version) => `
22-
<li class="md-version__item">
23-
<a href="${version.urls.documentation}" class="md-version__link">
24-
${version.slug}
25-
</a>
26-
</li>`,
27-
)
28-
.join("\n")}
29-
</ul>
30-
</div>`;
31-
32-
document.querySelector(".md-header__topic").insertAdjacentHTML("beforeend", versioning);
33-
});

docs/stylesheets/readthedocs.css

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

mkdocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repo_url: https://github.com/python-cmd2/cmd2
1212
edit_uri: edit/main/docs
1313

1414
# Copyright
15-
copyright: Copyright &copy; 2010-2024, cmd2 contributors.
15+
copyright: Copyright &copy; 2026, cmd2 contributors.
1616

1717
# Configuration
1818
theme:
@@ -218,10 +218,9 @@ nav:
218218
- Meta:
219219
- doc_conventions.md
220220

221-
# Include extra CSS to make some style adjustments for ReadTheDocs
221+
# Include extra CSS to make some style adjustments for visible width
222222
extra_css:
223223
- stylesheets/cmd2.css
224-
- stylesheets/readthedocs.css
225224

226225
# Include extra JS to setup Read the Docs addons integrations
227226
extra_javascript:

0 commit comments

Comments
 (0)