Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mediawiki_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
mediawiki_api
Commits
a962bc06
Commit
a962bc06
authored
Jul 30, 2024
by
Andrey Nuzhdov
Browse files
Options
Downloads
Patches
Plain Diff
Fixed README
parent
37add6b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+33
-5
33 additions, 5 deletions
README.md
with
33 additions
and
5 deletions
README.md
+
33
−
5
View file @
a962bc06
...
...
@@ -14,6 +14,7 @@ Submit bug reports and feature suggestions, or track changes in the
-
Requirements
-
Installation
-
Configuration
-
MediaWiki configuration
-
Troubleshooting & FAQ
-
Maintainers
...
...
@@ -37,6 +38,32 @@ information, see
example.com, you can use sub-domain wiki.example.com for your MediaWiki.
## MediaWiki configuration
In LocalSettings.php enter this:
Common settings:
// Set in Apache .conf 'Alias /w {absolute path to your wiki installation}/index.php' to work
$wgArticlePath = '/w/$1';
$wgUseSharedUploads = true;
$wgHashedSharedUploadDirectory = false;
$wgCacheSharedUploads = false;
$wgCapitalLinkOverrides[NS_FILE] = false;
$wgUseImageResize = true;
For public Drupal files:
$wgSharedUploadDirectory = {absolute path to your Drupal public files directory};
$wgSharedUploadPath = {URL to your public files directory from browser};
For private Drupal files:
$wgSharedUploadDirectory = {absolute path to your Drupal private files directory};
$wgSharedUploadPath = {URL to your private files directory from browser};
## Troubleshooting
Known limitations:
...
...
@@ -50,12 +77,12 @@ If you change any titles, you will get broken links, because of Drupal nodes not
## FAQ
**Q:
All the
supported
index
in this module
.
**
**Q:
What markup types is
supported in this module
?
**
**A:**
Italic, bold text, lists, sections and hr lines supported
**Q:
I want to
use public images on site
.
**
**Q:
How can I
use public images on
the
site
?
**
**A:**
If you use public images on site, you can use [[File:filename.png]] as a reference to the image. By default, no href is created for
the image, but if you enter $wgArticlePath setting (for example /w/$1) in the filter, your images will have href on the MediaWiki page
...
...
@@ -63,7 +90,7 @@ with corresponding image. As side effect, you will get workable links to MediaWi
MediaWiki page with same title, IF you don't have a node with the same title (Drupal pages take precedence).
**Q:
I want to
setup private files on site
.
**
**Q:
How can I
setup private files on
the
site
?
**
**A:**
To set up private files, you need to (as example):
...
...
@@ -84,6 +111,7 @@ and two options together: [[File:filename.png|200px|link=]].
## Maintainers
Current maintainers:
-
adam-griffiths -
[
adam-griffiths
](
https://www.drupal.org/user/503812
)
-
Peter Borsa -
[
asrob
](
https://www.drupal.org/u/asrob
)
-
Clemens Tolboom -
[
clemens.tolboom
](
https://www.drupal.org/u/clemenstolboom
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment