Merge pull request #203 from metaworx/add-local-website

Fix an issue where a folder would not be found, add sources and credits
This commit is contained in:
Mahmoud Gomaa authored and GitHub committed 2023-03-13 21:25:01 +02:00
commit 12c3f363aa
6 files changed
+2766 -6

No files matched your search

+4 -6
View File
@@ -96,26 +96,24 @@ Protected function preparePage(pageFile As FileInfo, ByRef basename As String, B
end if
''' If the url ends with ".html", we just go for it
if Not pageFile.Extension.ToLower() = "html" Then
if Not pageFile.Extension.ToLower() = ".html" Then
''' Otherwise try adding ".html" - This would be the case for a file in a directory
''' E.g. /docs/installation should really load /docs/installation.html
suffix = ".html"
dirInfo = New DirectoryInfo(pageFile.FullName)
pageFile = New FileInfo(pageFile.FullName & suffix)
''' test, if exists
''' test, if file exists
if not pageFile.Exists Then
''' otherwise it could be a directory, and we look for the "index.html"
''' So test for the directory
dirInfo = New DirectoryInfo(pageFile.FullName)
if dirInfo.Exists Then
''' If found, assume the default: index.html
suffix = "index.html"
pageFile = New FileInfo(pageFile.FullName & "\" & suffix)
pageFile = New FileInfo(dirInfo.FullName & "\" & suffix)
end if
+4
View File
@@ -44,6 +44,10 @@
<redirect url="^(.*)/$" exists="$1" to="$1/" processing="stop"/>
<redirect url="^(.*)/$" to="$1" processing="stop"/>
<!-- Remove trailing .html -->
<redirect url="^(.*)/index\.html$" to="$1" processing="stop"/>
<redirect url="^(.*)\.html$" to="$1" processing="stop"/>
<!-- Use dynamic pass-through, since /images/docs/* are actually under the projects /docs/images folder -->
<if url="^/images/docs(/.*)?$">
<rewrite url="^/images/docs(/.*)?$" to="/Default.aspx?type=image&amp;path=/docs/images$1" processing="stop"/>
Binary file not shown.
File diff suppressed because it is too large. Load diff

After

Width:  |  Height:  |  Size: 450 KiB

+19
View File
@@ -0,0 +1,19 @@
# License
Copyright (c) 2005-2011 Seth Yates
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
(Retrieved on 2023-03-13
from https://web.archive.org/web/20150928035850/http://urlrewriter.net/index.php/download/licence.)
+30
View File
@@ -0,0 +1,30 @@
# In this folder
This folder contains binaries to run the documentation in a local website. See README.md in the directory above for
further details.
## `Intelligencia.UrlRewriter.dll` from UrlRewriter.NET
This library is used by the ASP web server (see README.md in the directory above).
- See: \
https://web.archive.org/web/20151023031134/http://urlrewriter.net:80/
- Source Code: \
https://github.com/sethyates/urlrewriter/
- License: \
MIT-style
The build in this repository was extracted from the zip file retrieved on 2023-02-07 from
http://www.scottgu.com/blogposts/urlrewrite/UrlRewrite_HttpModule1.zip and was mentioned in
Scott Guthrie's post "Tip/Trick: Url Rewriting with ASP.NET", published 2007-02-27, also retrieved on
2023-02-27 from https://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net
## CassiniDev4 (Folder)
This folder is not part of the repository. It is created if your run the scripts shown in the README.md in the directory
above.
If the folder exists, it should have the following files in it:
- `CassiniDev4.exe`
- `Common.Logging.dll`