Mwfilter
lastmod 2026-10-27created 2025-01-3125 edits
mediawiki filter
Configuration
Copy the env-template file
SETTINGS_PAGE=Mwfilter:Settings
MKDOCS_YML=mkdocs.yml
# common
COLORED_LOGGING=True
DEFAULT_LOGGING=False
SIMPLE_LOGGING=False
SEVERITY=debug
DEBUG=True
VERBOSE=1
# down
MEDIAWIKI_HOSTNAME=<mediawiki-url>
ENDPOINT_PATH=/w/
MEDIAWIKI_USERNAME=<mediawiki-username>
MEDIAWIKI_PASSWORD=<mediawiki-password>
MEDIAWIKI_NAMESPACE=<mediawiki-namespace>
For my site
MEDIAWIKI_HOSTNAME=<mediawiki-url>
ENDPOINT_PATH=/
MEDIAWIKI_USERNAME=<mediawiki-username>
MEDIAWIKI_PASSWORD=<mediawiki-password>
MEDIAWIKI_NAMESPACE=0
For the hostname, write the domain without the scheme (https://).
Run everything in one go
Extracted into the autorun script.
## Template Namespace (-n 10) 전부 다운로드.
"$ROOT_DIR/run" -D -y down -n 10 -a
## 일반 페이지 전부 다운로드.
"$ROOT_DIR/run" -D -y down -a
## Exclude 페이지에서 설정파일 저장 (~/.mwfilter/<호스트명>/exclude.yml 위치에 저장됨)
"$ROOT_DIR/run" -D -y exclude
## Index 페이지 추출 (mkdocs 의 docs/index.md 파일로 저장된다.)
"$ROOT_DIR/run" -D -y index
## Navigation 페이지 추출 (mkdocs 의 docs/nav.md 파일로 저장된다.)
"$ROOT_DIR/run" -D -y nav
## 다운로드받은 모든 페이지 빌드하여 mkdocs 의 docs 폴더에 저장.
"$ROOT_DIR/run" -D -y build -a
Special pages
- Mwfilter:Navigation - left Side Menu -> nav page
- Mwfilter:Exclude - list of excluded pages
- Mwfilter:Images - list of images to include
- Mwfilter:Index - start page -> index page
- Mwfilter:Sitemap - Sitemap Div Placeholder -> sm page
-
Mwfilter:Settings- page collecting configuration information - removed. -
Mwfilter:Sitemap- listing of the whole site (generated automatically) - Mwfilter:About - About page
- Mwfilter:PrivacyPolicy - Privacy Policy
MediaWiki reference
- Special:Mostrevisions - list of most edited pages
See also
Favorite site
Pages that link here