Skip to content

Commit 0f2352d

Browse files
committed
[ 1.0.1 ] - 2023/10/28
* Added support for ReadtheDocs documentation hosting.
1 parent 9ed7c3e commit 0f2352d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+31420
-8
lines changed

Diff for: .gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,5 @@ artifacts/
173173
/test/developer_notes.txt
174174
/test/stu/
175175
/Git*.cmd
176-
177176
# include PDOC documentation
178-
#!docspdoc/build/
177+
!docspdoc/build/

Diff for: BoseSoundTouchApiProject.pyproj

+3
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@
206206
<Folder Include="test\" />
207207
</ItemGroup>
208208
<ItemGroup>
209+
<Content Include=".gitattributes" />
209210
<Content Include=".github\ISSUE_TEMPLATE\bug.yml" />
210211
<Content Include=".github\ISSUE_TEMPLATE\config.yml" />
211212
<Content Include=".github\ISSUE_TEMPLATE\feature_request.yml" />
213+
<Content Include=".gitignore" />
212214
<Content Include=".vscode\launch.json" />
213215
<Content Include=".vscode\settings.json" />
214216
<Content Include="build.bat" />
@@ -293,6 +295,7 @@
293295
<Content Include="docs\include\samplecode\SmartInspectPython\Overview.md" />
294296
<Content Include="LICENSE" />
295297
<Content Include="README.md" />
298+
<Content Include="readthedocs.yaml" />
296299
<Content Include="requirements.txt" />
297300
<Content Include="test\developer_notes.txt" />
298301
<Content Include="test\smartinspect.cfg" />

Diff for: BoseSoundTouchApiProject.pyproj.user

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<ProjectView>ShowAllFiles</ProjectView>
4+
<ProjectView>ProjectFiles</ProjectView>
55
</PropertyGroup>
66
</Project>

Diff for: CHANGELOG.md

+4

Diff for: bosesoundtouchapi/bstconst.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# constants are placed in this file if they are used across multiple files.
55
# the only exception to this is for the VERSION constant, which is placed here for convenience.
66

7-
VERSION:str = "1.0.0"
7+
VERSION:str = "1.0.1"
88
"""
99
Current version of the Bose SoundTouch API Python3 Library.
1010
"""

Diff for: docspdoc/build/__init__.html

+511
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi.ico

4.19 KB
Binary file not shown.

Diff for: docspdoc/build/bosesoundtouchapi/bstappmessages.html

+355
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/bstconst.html

+462
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/bstutils.html

+478
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/firmware/soundtouchfirmware.html

+497
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/firmware/soundtouchfirmwareproduct.html

+457
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/firmware/soundtouchfirmwarerelease.html

+479
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/balance.html

+464
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/bass.html

+384
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/basscapabilities.html

+389
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/capabilities.html

+468
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/clockconfig.html

+422
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/clocktime.html

+534
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/contentitem.html

+491
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/dspmonostereoitem.html

+359
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/infonetworkconfig.html

+373
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/mediaserver.html

+453
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/mediaserverlist.html

+356
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/networkinfo.html

+389
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/networkinfointerface.html

+471
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/networkstatus.html

+405
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/networkstatusinterface.html

+440
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/nowplayingstatus.html

+790
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/powermanagement.html

+357
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/preset.html

+585
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/presetlist.html

+424
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/recent.html

+567
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/recentlist.html

+428
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/simpleconfig.html

+402
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/sourceitem.html

+447
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/sourcelist.html

+399
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/systemtimeout.html

+341
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/volume.html

+402
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/wirelessprofile.html

+341
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/zone.html

+505
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/models/zonemember.html

+421
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchclient.html

+5,932
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchdevice.html

+773
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchdevicecomponent.html

+372
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtoucherror.html

+396
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchexception.html

+374
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchkeys.html

+687
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchmessage.html

+409
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchmodelrequest.html

+324
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchnotifycategorys.html

+690
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchsources.html

+567
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/soundtouchwarning.html

+356
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/uri/soundtouchnodes.html

+2,294
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/uri/soundtouchuri.html

+359
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/uri/soundtouchuriscopes.html

+315
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/uri/soundtouchuritypes.html

+315
Large diffs are not rendered by default.

Diff for: docspdoc/build/bosesoundtouchapi/ws/soundtouchwebsocket.html

+690
Large diffs are not rendered by default.

Diff for: docspdoc/build/codecopy.js

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// add event listener to call function after window has been completely loaded.
2+
window.addEventListener("load", codecopyAddLinkButtons, false);
3+
4+
// ********************************************************************
5+
// add "Copy to Clipboard" button to all code hi-lite blocks.
6+
// ********************************************************************
7+
function codecopyAddLinkButtons(){
8+
9+
// get list of all code hilite blocks.
10+
const codehilites = document.querySelectorAll("div.codehilite")
11+
12+
// add "copy" button to each element.
13+
codehilites.forEach(div => {
14+
const btnCopy = document.createElement("button")
15+
btnCopy.innerHTML = "Copy to Clipboard"
16+
btnCopy.addEventListener("click", codecopyClick)
17+
btnCopy.style.top = "0px"
18+
btnCopy.style.right = "0px"
19+
div.append(btnCopy)
20+
})
21+
}
22+
23+
24+
// ********************************************************************
25+
// handles the button click event.
26+
// copies the code hi-lite text to the clipboard.
27+
// ********************************************************************
28+
function codecopyClick(evt) {
29+
30+
// get the children of the parent element.
31+
const { children } = evt.target.parentElement
32+
33+
// grab the second element (we append the copy button on afterwards, so the first will be the code element).
34+
// destructure the innerText from the code block.
35+
const { innerText } = Array.from(children)[0]
36+
37+
// copy all of the code to the clipboard.
38+
copyToClipboard(innerText)
39+
40+
// inform the user it worked.
41+
evt.target.innerHTML = "Code Copied to Clipboard"
42+
43+
// set button text back to normal after 2 seconds.
44+
setTimeout(function() { evt.target.innerHTML = "Copy to Clipboard"; }, 2000);
45+
}
46+
47+
48+
// ********************************************************************
49+
// copies data to the clipboard.
50+
// ********************************************************************
51+
const copyToClipboard = str => {
52+
const el = document.createElement("textarea") // Create a <textarea> element
53+
el.value = str // Set its value to the string that you want copied
54+
el.setAttribute("readonly", "") // Make it readonly to be tamper-proof
55+
el.style.position = "absolute"
56+
el.style.left = "-9999px" // Move outside the screen to make it invisible
57+
document.body.appendChild(el) // Append the <textarea> element to the HTML document
58+
const selected =
59+
document.getSelection().rangeCount > 0 // Check if there is any content selected previously
60+
? document.getSelection().getRangeAt(0) // Store selection if found
61+
: false // Mark as false to know no selection existed before
62+
el.select() // Select the <textarea> content
63+
document.execCommand("copy") // Copy - only works as a result of a user action (e.g. click events)
64+
document.body.removeChild(el) // Remove the <textarea> element
65+
if (selected) {
66+
// If a selection existed before copying
67+
document.getSelection().removeAllRanges() // Unselect everything on the HTML document
68+
document.getSelection().addRange(selected) // Restore the original selection
69+
}
70+
}

Diff for: docspdoc/build/index.html

+382
Large diffs are not rendered by default.

Diff for: docspdoc/build/search.js

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: readthedocs.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-20.04
5+
tools:
6+
python: "3.8"
7+
commands:
8+
- mkdir --parents _readthedocs/html/
9+
- cp --recursive docspdoc/build/* _readthedocs/html/

Diff for: setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def getDirFilesList(pathName:str) -> list[str]:
8585
],
8686

8787
# provide some links to list on the Pypi.org site.
88-
#project_urls={
88+
project_urls={
8989
# 'Documentation': 'https://example.com/documentation/',
90-
# 'GitHub': 'https://github.com/foobar/foobar/',
91-
# 'Changelog': 'https://github.com/foobar/foobar/blob/master/CHANGELOG.md',
92-
#},
90+
'GitHub': 'https://github.com/thlucas1/bosesoundtouchapi',
91+
'Changelog': 'https://github.com/thlucas1/bosesoundtouchapi/blob/master/CHANGELOG.md',
92+
}
9393
)

0 commit comments

Comments
 (0)