(we are switching to a new theme, don't worry if things look different for a while!)

Site Navigation

Home
Search
All Pages
Recent Changes

Plans

Massive Wiki Roadmap
Pier2Pier
Massive Wiki Builder redesign

For Testing

wiki link test page
Mistletoe parser test page
Mistletoe & the ampersand story

Edit This Page Clicking 'Edit This Page' opens this page on GitHub. You can edit, and save changes, if you are a contributor to the repository. Close the edit page to return to this one.


PyPI module development notes

a collection of work notes on development of the nxc PyPI module replacement for mwb (Massive Wiki Builder)

2024-06-29 TODO:

	 

2024-06-30:

2024-07-05:

2024-07-06:

edit_url: 'https://codeberg.org/{org}/{repo}/_edit/{branch}/'

edit_url: 'https://github.com/{org}/{repo}/edit/{branch}/'

edit_url: 'https://gitlab.com/{org}/{project-or subgroup}/{repo}/-/edit/{branch}/'

edit_url: 'https://gitea.com/{org}/{repo}/_edit/{branch}/'

# Bitbucket requires suffix
edit_url_prefix: 'https://bitbucket.org/{org}/{repo}/src/{branch}/'
edit_url_suffix: '?mode=edit'

2024-07-06 exclude specific subdirectories from website build (feature request)

exclude_subdir = "/path/to/your/directory/exclude_subdir"
filtered_markdown_files = [file for file in markdown_files if not file.startswith(exclude_subdir)]

when exclude_subdirs is a list of directories this code is an option:

filtered_markdown_files = [file for file in markdown_files if not any(file.startswith(exclude_subdir) for exclude_subdir in exclude_subdirs)]

2024-07-07:

from urllib.parse import urlparse
forge_host = urlparse(config['edit_url']).hostname

2024-07-09:

2024-07-10:

2024-07-14:

2024-07-15: more notes

2024-07-16: notes on building developer-wiki on gh-pages using nxc