QZLin / sandboxie-docs

Sandboxie Documentation (use mkdocs)
0 stars 0 forks source link

Several links are not redirected correctly #9

Closed isaak654 closed 2 months ago

isaak654 commented 3 months ago
  1. Go to https://sandboxie-plus.github.io/sandboxie-docs/search.html?q=comparison
  2. Go to the first result
  3. Click the Improve this page! link and you will be redirected to README.md instead of the current page.
QZLin commented 2 months ago

Where should "Improve this page" on the search page link to? The search page is generated by Mkdocs and there is no matching markdown file here.

isaak654 commented 2 months ago

Example 1: https://sphinx-rtd-theme.readthedocs.io/en/stable/contributing.html Example 2: https://linuxmint-installation-guide.readthedocs.io/en/latest/boot.html?highlight=boot Example 3: https://mkdocs.readthedocs.io/en/859/?q=custom&check_keywords=yes&area=default

In the first case, the search results point to the respective .html files and the "Edit on GitHub" link at the top seem to work consistently.

The second case is similar to the first one, but with the bonus of the search highlight that would fix #5

In the third case, the search results do not point to the .html files, but the "Edit on GitHub" link always points to the root repository https://github.com/mkdocs/mkdocs/ (this is better than always pointing to the README.md)

If case 2 or 1 are not feasible, I would suggest to go for 3.


Update: the issue seems to be more extensive than expected, as the documentation links found here are not redirected correctly.

Examples:


Update: there is one case left.

Examples: https://sandboxie-plus.github.io/sandboxie-docs/Content/SBIEDLLAPI/ (working URL) https://qzlin.github.io/sandboxie-docs/Content/SBIEDLLAPI/ (URL not working)

QZLin commented 2 months ago

Can't add the suffix .html to url now, this will work:

I will try to get suffixed url to work.

Examples for testing: https://qzlin.github.io/sandboxie-docs/Content/SBIEDLLAPI.html https://qzlin.github.io/sandboxie-docs/Content/SBIEDLLAPI/ https://qzlin.github.io/sandboxie-docs/Content/FileRootPath.html https://qzlin.github.io/sandboxie-docs/Content/SBIE2204.html https://qzlin.github.io/sandboxie-docs/Content/WriteFilePath.html

https://qzlin.github.io/sandboxie-docs/search.html?q=comparison

SBIE_list.ps1 ````ps1 Push-Location $PSScriptRoot/.. $space_len = 4 $c = Get-ChildItem "docs/Content" -Filter "SBIE*" | ` ForEach-Object { "$( ' '*$space_len )- Content/$( $_.BaseName ).md" } #Set-Clipboard -Value $c Write-Output $c Pop-Location
QZLin commented 2 months ago

https://qzlin.github.io/sandboxie-docs -> https://qzlin.github.io/sandboxie-docs/ This behaviour seems to be coming from the Github page, and there's nothing I can do.