Skip to content

Commit a5c53ba

Browse files
committed
Wiki is leaking
hash links now work Some style Update wiki.php Update wiki.php [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Adjusting the colors of the code section. [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Update wiki.php
1 parent b0137dc commit a5c53ba

File tree

3 files changed

+394
-12
lines changed

3 files changed

+394
-12
lines changed

.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
1616
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
1717
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
1818
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L]
19+
RewriteRule ^wiki-([^/]*)\.php$ /wiki.php?page=$1 [QSA,L]
1920

2021
#remove php file extension-e.g. https://example.com/file.php will become https://example.com/file
2122
RewriteCond %{REQUEST_FILENAME} !-d

header.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -84,32 +84,32 @@
8484
<a class="nav-link my-2 rounded-pill dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><?php echo _('Documentation'); ?></a>
8585

8686
<div class="dropdown-menu-mobile-right dropdown-community dropdown-menu dropdown-menu-right">
87-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Main_Page'); ?>"><?php echo _('Documentation index'); ?></a>
88-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Getting_started'); ?>"><?php echo _('Getting started'); ?></a>
89-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/User_hub'); ?>"><?php echo _('Users documentation'); ?></a>
90-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Manual'); ?>"><?php echo _('The FreeCAD manual'); ?></a>
91-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Workbenches'); ?>"><?php echo _('Workbenches documentation'); ?></a>
92-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Power_users_hub'); ?>"><?php echo _('Python coding documentation'); ?></a>
93-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Developer_hub'); ?>"><?php echo _('C++ coding documentation'); ?></a>
94-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Tutorials'); ?>"><?php echo _('Tutorials'); ?></a>
95-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Frequently_asked_questions'); ?>"><?php echo _('Frequently asked questions'); ?></a>
87+
<a class="dropdown-item text-dark" href="wiki-Main_Page.php<?php echo $langStr; ?>"><?php echo _('Documentation index'); ?></a>
88+
<a class="dropdown-item text-dark" href="wiki-Getting_started.php<?php echo $langStr; ?>"><?php echo _('Getting started'); ?></a>
89+
<a class="dropdown-item text-dark" href="wiki-User_hub.php<?php echo $langStr; ?>"><?php echo _('Users documentation'); ?></a>
90+
<a class="dropdown-item text-dark" href="wiki-Manual.php<?php echo $langStr; ?>"><?php echo _('The FreeCAD manual'); ?></a>
91+
<a class="dropdown-item text-dark" href="wiki-Workbenches.php<?php echo $langStr; ?>"><?php echo _('Workbenches documentation'); ?></a>
92+
<a class="dropdown-item text-dark" href="wiki-Power_users_hub.php<?php echo $langStr; ?>"><?php echo _('Python coding documentation'); ?></a>
93+
<a class="dropdown-item text-dark" href="wiki-Developer_hub.php<?php echo $langStr; ?>"><?php echo _('C++ coding documentation'); ?></a>
94+
<a class="dropdown-item text-dark" href="wiki-Tutorials.php<?php echo $langStr; ?>"><?php echo _('Tutorials'); ?></a>
95+
<a class="dropdown-item text-dark" href="wiki-Frequently_asked_questions.php<?php echo $langStr; ?>"><?php echo _('Frequently asked questions'); ?></a>
9696
<a class="dropdown-item text-dark" href="<?php echo $privacyurl; ?>"><?php echo _('Privacy policy'); ?></a>
97-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/About_FreeCAD'); ?>"><?php echo _('About FreeCAD'); ?></a>
97+
<a class="dropdown-item text-dark" href="wiki-About_FreeCAD.php<?php echo $langStr; ?>"><?php echo _('About FreeCAD'); ?></a>
9898
</div>
9999
</li>
100100

101101
<li class="nav-item dropdown">
102102
<a class="nav-link my-2 rounded-pill dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><?php echo _('Contribute'); ?></a>
103103

104104
<div class="dropdown-menu-mobile-left dropdown-community dropdown-menu dropdown-menu-right">
105-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Help_FreeCAD'); ?>"><?php echo _('How to help'); ?></a>
105+
<a class="dropdown-item text-dark" href="wiki-Help_FreeCAD.php<?php echo $langStr; ?>"><?php echo _('How to help'); ?></a>
106106
<a class="dropdown-item text-dark" href="<?php echo $sponsorurl; ?>"><?php echo _('Donate / Sponsor'); ?></a>
107107
<a class="dropdown-item text-dark" href="https://github.com/FreeCAD/FreeCAD/issues"><?php echo _('Report a bug'); ?></a>
108108
<a class="dropdown-item text-dark" href="https://github.com/FreeCAD/FreeCAD/pulls"><?php echo _('Make a pull request'); ?></a>
109109
<a class="dropdown-item text-dark" href="https://fpa.freecad.org/programs.html"><?php echo _('Jobs and funding'); ?></a>
110110
<a class="dropdown-item text-dark" href="<?php echo $contributingurl; ?>"><?php echo _('Contribution guidelines'); ?></a>
111111
<a class="dropdown-item text-dark" href="https://freecad.github.io/DevelopersHandbook/"><?php echo _('Developers handbook'); ?></a>
112-
<a class="dropdown-item text-dark" href="<?php echo _('https://wiki.freecad.org/Localisation'); ?>"><?php echo _('Translations'); ?></a>
112+
<a class="dropdown-item text-dark" href="wiki-Localisation.php<?php echo $langStr; ?>"><?php echo _('Translations'); ?></a>
113113
</div>
114114
</li>
115115

0 commit comments

Comments
 (0)