-
Notifications
You must be signed in to change notification settings - Fork 77
docs: add generated documentation #2755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
myakove
wants to merge
1
commit into
main
Choose a base branch
from
docs/docsfy-openshift-python-wrapper
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| (function() { | ||
| var blockquotes = document.querySelectorAll('blockquote'); | ||
| blockquotes.forEach(function(bq) { | ||
| var firstStrong = bq.querySelector('strong'); | ||
| if (!firstStrong) return; | ||
|
|
||
| var text = firstStrong.textContent.toLowerCase().replace(':', '').trim(); | ||
| var type = null; | ||
|
|
||
| if (text === 'note' || text === 'info') { | ||
| type = 'note'; | ||
| } else if (text === 'warning' || text === 'caution') { | ||
| type = 'warning'; | ||
| } else if (text === 'tip' || text === 'hint') { | ||
| type = 'tip'; | ||
| } else if (text === 'danger' || text === 'error') { | ||
| type = 'danger'; | ||
| } else if (text === 'important') { | ||
| type = 'important'; | ||
| } | ||
|
|
||
| if (type) { | ||
| bq.classList.add('callout', 'callout-' + type); | ||
| } | ||
| }); | ||
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| (function() { | ||
| var blocks = document.querySelectorAll('pre code'); | ||
| blocks.forEach(function(code) { | ||
| var classes = code.className || ''; | ||
| var match = classes.match(/language-(\w+)/); | ||
| if (!match) return; | ||
|
|
||
| var lang = match[1]; | ||
| var labelMap = { | ||
| 'python': 'Python', | ||
| 'py': 'Python', | ||
| 'javascript': 'JavaScript', | ||
| 'js': 'JavaScript', | ||
| 'typescript': 'TypeScript', | ||
| 'ts': 'TypeScript', | ||
| 'bash': 'Bash', | ||
| 'sh': 'Shell', | ||
| 'shell': 'Shell', | ||
| 'json': 'JSON', | ||
| 'yaml': 'YAML', | ||
| 'yml': 'YAML', | ||
| 'html': 'HTML', | ||
| 'css': 'CSS', | ||
| 'go': 'Go', | ||
| 'rust': 'Rust', | ||
| 'java': 'Java', | ||
| 'ruby': 'Ruby', | ||
| 'rb': 'Ruby', | ||
| 'sql': 'SQL', | ||
| 'dockerfile': 'Dockerfile', | ||
| 'docker': 'Dockerfile', | ||
| 'toml': 'TOML', | ||
| 'xml': 'XML', | ||
| 'c': 'C', | ||
| 'cpp': 'C++', | ||
| 'csharp': 'C#', | ||
| 'cs': 'C#', | ||
| 'php': 'PHP', | ||
| 'swift': 'Swift', | ||
| 'kotlin': 'Kotlin', | ||
| 'scala': 'Scala', | ||
| 'r': 'R', | ||
| 'lua': 'Lua', | ||
| 'perl': 'Perl', | ||
| 'makefile': 'Makefile', | ||
| 'graphql': 'GraphQL', | ||
| 'markdown': 'Markdown', | ||
| 'md': 'Markdown', | ||
| 'plaintext': 'Text', | ||
| 'text': 'Text', | ||
| 'ini': 'INI', | ||
| 'env': '.env', | ||
| }; | ||
|
|
||
| var displayName = labelMap[lang.toLowerCase()] || lang; | ||
|
|
||
| var pre = code.parentElement; | ||
| if (!pre || pre.tagName !== 'PRE') return; | ||
|
|
||
| var label = document.createElement('span'); | ||
| label.className = 'code-label'; | ||
| label.textContent = displayName; | ||
|
|
||
| var wrapper = pre.closest('.code-block-wrapper'); | ||
| if (wrapper) { | ||
| wrapper.insertBefore(label, wrapper.firstChild); | ||
| } else { | ||
| pre.style.position = 'relative'; | ||
| label.style.position = 'absolute'; | ||
| label.style.top = '0.5rem'; | ||
| label.style.right = '0.5rem'; | ||
| pre.insertBefore(label, pre.firstChild); | ||
| } | ||
| }); | ||
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| (function() { | ||
| document.querySelectorAll('pre').forEach(function(pre) { | ||
| var btn = document.createElement('button'); | ||
| btn.className = 'copy-btn'; | ||
| btn.textContent = 'Copy'; | ||
| btn.addEventListener('click', function() { | ||
| var code = pre.querySelector('code'); | ||
| var text = code ? code.textContent : pre.textContent; | ||
| if (navigator.clipboard && navigator.clipboard.writeText) { | ||
| navigator.clipboard.writeText(text).then(function() { | ||
| btn.textContent = 'Copied!'; | ||
| setTimeout(function() { btn.textContent = 'Copy'; }, 2000); | ||
| }).catch(function() { | ||
| fallbackCopy(text, btn); | ||
| }); | ||
| } else { | ||
| fallbackCopy(text, btn); | ||
| } | ||
| }); | ||
| pre.style.position = 'relative'; | ||
| pre.appendChild(btn); | ||
| }); | ||
|
|
||
| function fallbackCopy(text, btn) { | ||
| var textarea = document.createElement('textarea'); | ||
| textarea.value = text; | ||
| textarea.style.position = 'fixed'; | ||
| textarea.style.opacity = '0'; | ||
| document.body.appendChild(textarea); | ||
| textarea.select(); | ||
| try { | ||
| document.execCommand('copy'); | ||
| btn.textContent = 'Copied!'; | ||
| setTimeout(function() { btn.textContent = 'Copy'; }, 2000); | ||
| } catch (e) { | ||
| btn.textContent = 'Failed'; | ||
| setTimeout(function() { btn.textContent = 'Copy'; }, 2000); | ||
| } | ||
| document.body.removeChild(textarea); | ||
| } | ||
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| (function() { | ||
| var link = document.getElementById('github-link'); | ||
| if (!link) return; | ||
|
|
||
| var repoUrl = link.getAttribute('data-repo-url'); | ||
| if (!repoUrl) return; | ||
|
|
||
| // Extract owner/repo from GitHub URL | ||
| var match = repoUrl.match(/github\.com[/:]([^/]+)\/([^/.]+)/); | ||
| if (!match) return; | ||
|
|
||
| var owner = match[1]; | ||
| var repo = match[2]; | ||
|
|
||
| var starsEl = document.getElementById('github-stars'); | ||
| if (!starsEl) return; | ||
|
|
||
| fetch('https://api.github.com/repos/' + owner + '/' + repo) | ||
| .then(function(response) { | ||
| if (!response.ok) return null; | ||
| return response.json(); | ||
| }) | ||
| .then(function(data) { | ||
| if (!data || typeof data.stargazers_count === 'undefined') return; | ||
| var count = data.stargazers_count; | ||
| var display; | ||
| if (count >= 1000) { | ||
| display = (count / 1000).toFixed(1).replace(/\.0$/, '') + 'k'; | ||
| } else { | ||
| display = count.toString(); | ||
| } | ||
| starsEl.textContent = '★ ' + display; | ||
| starsEl.title = count.toLocaleString() + ' stars'; | ||
| }) | ||
| .catch(function() { | ||
| // Silently fail - star count is a nice-to-have | ||
| }); | ||
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| (function() { | ||
| var tocLinks = document.querySelectorAll('.toc-container a'); | ||
| if (tocLinks.length === 0) return; | ||
|
|
||
| var headings = []; | ||
| tocLinks.forEach(function(link) { | ||
| var href = link.getAttribute('href'); | ||
| if (href && href.startsWith('#')) { | ||
| var target = document.getElementById(href.substring(1)); | ||
| if (target) { | ||
| headings.push({ element: target, link: link }); | ||
| } | ||
| } | ||
| }); | ||
|
|
||
| if (headings.length === 0) return; | ||
|
|
||
| function updateActive() { | ||
| var scrollPos = window.scrollY + 100; | ||
| var current = null; | ||
|
|
||
| for (var i = 0; i < headings.length; i++) { | ||
| if (headings[i].element.offsetTop <= scrollPos) { | ||
| current = headings[i]; | ||
| } | ||
| } | ||
|
|
||
| tocLinks.forEach(function(link) { | ||
| link.classList.remove('active'); | ||
| }); | ||
|
|
||
| if (current) { | ||
| current.link.classList.add('active'); | ||
| } | ||
| } | ||
|
|
||
| var ticking = false; | ||
| window.addEventListener('scroll', function() { | ||
| if (!ticking) { | ||
| window.requestAnimationFrame(function() { | ||
| updateActive(); | ||
| ticking = false; | ||
| }); | ||
| ticking = true; | ||
| } | ||
| }); | ||
|
|
||
| updateActive(); | ||
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| (function() { | ||
| // Create modal HTML | ||
| var overlay = document.createElement('div'); | ||
| overlay.className = 'search-modal-overlay'; | ||
| overlay.innerHTML = '<div class="search-modal">' + | ||
| '<input type="text" class="search-modal-input" placeholder="Search documentation..." autofocus />' + | ||
| '<div class="search-modal-results"></div>' + | ||
| '<div class="search-modal-footer"><kbd>Esc</kbd> to close <kbd>↑↓</kbd> to navigate <kbd>Enter</kbd> to open</div>' + | ||
| '</div>'; | ||
| document.body.appendChild(overlay); | ||
|
|
||
| var input = overlay.querySelector('.search-modal-input'); | ||
| var results = overlay.querySelector('.search-modal-results'); | ||
| var index = []; | ||
| var selectedIdx = -1; | ||
|
|
||
| // Load index | ||
| fetch('search-index.json').then(function(r) { return r.json(); }) | ||
| .then(function(data) { index = data; }).catch(function() {}); | ||
|
|
||
| // Open/close | ||
| function openModal() { | ||
| overlay.classList.add('active'); | ||
| input.value = ''; | ||
| results.innerHTML = ''; | ||
| selectedIdx = -1; | ||
| setTimeout(function() { input.focus(); }, 50); | ||
| } | ||
|
|
||
| function closeModal() { | ||
| overlay.classList.remove('active'); | ||
| } | ||
|
|
||
| // Keyboard shortcut | ||
| document.addEventListener('keydown', function(e) { | ||
| if ((e.metaKey || e.ctrlKey) && e.key === 'k') { | ||
| e.preventDefault(); | ||
| openModal(); | ||
| } | ||
| if (e.key === 'Escape') closeModal(); | ||
| }); | ||
|
|
||
| // Click overlay to close | ||
| overlay.addEventListener('click', function(e) { | ||
| if (e.target === overlay) closeModal(); | ||
| }); | ||
|
|
||
| // Search trigger button in sidebar | ||
| var sidebarSearch = document.getElementById('search-input'); | ||
| if (sidebarSearch) { | ||
| sidebarSearch.addEventListener('focus', function(e) { | ||
| e.preventDefault(); | ||
| this.blur(); | ||
| openModal(); | ||
| }); | ||
| } | ||
|
|
||
| // Search trigger button in top bar | ||
| var topBarSearch = document.getElementById('search-trigger'); | ||
| if (topBarSearch) { | ||
| topBarSearch.addEventListener('click', function(e) { | ||
| e.preventDefault(); | ||
| openModal(); | ||
| }); | ||
| } | ||
|
|
||
| // Search logic | ||
| input.addEventListener('input', function() { | ||
| var q = this.value.toLowerCase().trim(); | ||
| results.innerHTML = ''; | ||
| selectedIdx = -1; | ||
| if (!q) return; | ||
|
|
||
| var matches = index.filter(function(item) { | ||
| return item.title.toLowerCase().includes(q) || item.content.toLowerCase().includes(q); | ||
| }).slice(0, 10); | ||
|
|
||
| matches.forEach(function(m, i) { | ||
| var div = document.createElement('a'); | ||
| div.href = m.slug + '.html'; | ||
| div.className = 'search-result-item'; | ||
|
|
||
| var title = document.createElement('span'); | ||
| title.className = 'search-result-title'; | ||
| title.textContent = m.title; | ||
| div.appendChild(title); | ||
|
|
||
| // Content preview | ||
| var preview = document.createElement('span'); | ||
| preview.className = 'search-result-preview'; | ||
| var contentIdx = m.content.toLowerCase().indexOf(q); | ||
| if (contentIdx >= 0) { | ||
| var start = Math.max(0, contentIdx - 40); | ||
| var end = Math.min(m.content.length, contentIdx + q.length + 60); | ||
| var snippet = (start > 0 ? '...' : '') + m.content.substring(start, end) + (end < m.content.length ? '...' : ''); | ||
| preview.textContent = snippet; | ||
| } | ||
| div.appendChild(preview); | ||
| results.appendChild(div); | ||
| }); | ||
|
|
||
| if (matches.length === 0) { | ||
| var empty = document.createElement('div'); | ||
| empty.className = 'search-no-results'; | ||
| empty.textContent = 'No results found'; | ||
| results.appendChild(empty); | ||
| } | ||
| }); | ||
|
|
||
| // Keyboard navigation | ||
| input.addEventListener('keydown', function(e) { | ||
| var items = results.querySelectorAll('.search-result-item'); | ||
| if (e.key === 'ArrowDown') { | ||
| e.preventDefault(); | ||
| selectedIdx = Math.min(selectedIdx + 1, items.length - 1); | ||
| items.forEach(function(item, i) { item.classList.toggle('selected', i === selectedIdx); }); | ||
| } else if (e.key === 'ArrowUp') { | ||
| e.preventDefault(); | ||
| selectedIdx = Math.max(selectedIdx - 1, 0); | ||
| items.forEach(function(item, i) { item.classList.toggle('selected', i === selectedIdx); }); | ||
| } else if (e.key === 'Enter' && selectedIdx >= 0 && items[selectedIdx]) { | ||
| window.location.href = items[selectedIdx].href; | ||
| } | ||
| }); | ||
| })(); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Docs secret-scan bypass
🐞 Bug⛨ SecurityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools