We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f7e160 commit a711368Copy full SHA for a711368
assets/js/projects.js
@@ -138,9 +138,20 @@ $(document).ready(function(){
138
project_repo = project_repo.toLowerCase();
139
140
if (docs_repo === project_repo) {
141
+ let docs_url = readthedocs[docs]['urls']['documentation']
142
+ try {
143
+ let parsedUrl = new URL(docs_url);
144
+ if (parsedUrl.host !== "docs.lizardbyte.dev") {
145
+ continue;
146
+ }
147
+ } catch (e) {
148
+ console.error("Invalid URL:", docs_url);
149
150
151
+
152
let docs_link = document.createElement("a")
153
docs_link.className = "nav-link text-warning ms-3"
- docs_link.href = readthedocs[docs]['urls']['documentation']
154
+ docs_link.href = docs_url
155
docs_link.target = "_blank"
156
repo_data_row.appendChild(docs_link)
157
0 commit comments