Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate mwiki to Python3 #8

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7affd08
Rewrite mwiki in python3
VolatileDream Feb 28, 2021
3259276
Fix relative mwiki usage
VolatileDream Feb 28, 2021
d5e3b08
Add Template rendering class
VolatileDream Mar 4, 2021
07aff76
Adds Dependency Graph
VolatileDream Mar 4, 2021
b931b4c
Add Status and Convert MarkBuilt Check to Trigger
VolatileDream Mar 4, 2021
f544d37
Add index on Node(name)
VolatileDream Mar 4, 2021
769ca5c
Add DependencyGraph.changed
VolatileDream Mar 4, 2021
c12e331
Move NotFoundException to common module
VolatileDream Mar 5, 2021
cbc93c4
Adds Storage interface
VolatileDream Mar 5, 2021
2b55631
Add load_connected to DependencyGraph.remove
VolatileDream Mar 7, 2021
c8d9685
Change Storage class interface
VolatileDream Mar 7, 2021
62ac902
Add Plugin Interface
VolatileDream Mar 7, 2021
3bb047b
Add dependency checking
VolatileDream Mar 8, 2021
29a9d4a
Adds Manager class
VolatileDream Mar 8, 2021
8ca816d
Adds correct default to Storage shims
VolatileDream Mar 8, 2021
25bdaed
Renames Mixins
VolatileDream Mar 8, 2021
8b51923
Moves src
VolatileDream Mar 8, 2021
711a8c1
Starts sample installation
VolatileDream Mar 8, 2021
21461f1
Moves mwiki binary into package
VolatileDream Mar 8, 2021
9ae76da
Import change for dir rename
VolatileDream Mar 8, 2021
436c9cd
Changes plugin functions
VolatileDream Mar 8, 2021
8c0b86d
Fixes manager tests
VolatileDream Mar 8, 2021
51adba8
Remove storage name collision
VolatileDream Mar 9, 2021
a27b94e
Rename plugins
VolatileDream Mar 9, 2021
37c1b28
Builds mark DependencyGraph as rebuilt
VolatileDream Mar 9, 2021
f389105
Mostly working py rebuild
VolatileDream Mar 9, 2021
618724a
Add DependencyGraph.iterate
VolatileDream Mar 9, 2021
9e4cbba
Switch Storage.iterate to DependencyGraph.iterate
VolatileDream Mar 9, 2021
615c172
Raise Exceptions by default
VolatileDream Mar 9, 2021
d67ee01
Reworks Graph, and fixes plugins
VolatileDream Mar 9, 2021
32ce455
Adds workable QuotesPlugin
VolatileDream Mar 9, 2021
a758ce3
Ensures index pages is legible when cat
VolatileDream Mar 9, 2021
44a1d17
Adds QuotesPlugin
VolatileDream Mar 9, 2021
d848b40
Catches more bad plugin implementations
VolatileDream Mar 10, 2021
3b29b68
Updates links regex
VolatileDream Mar 10, 2021
3705e9c
Adds Mentions and Missing Plugins
VolatileDream Mar 10, 2021
1ee0319
Add new plugins to template
VolatileDream Mar 10, 2021
74c3f43
Removes Whitespace from template
VolatileDream Mar 10, 2021
fd0fa2e
Optimize Missing Plugin
VolatileDream Mar 10, 2021
df1572c
Adds Events Plugin
VolatileDream Mar 10, 2021
2b1a021
Fix small bug
VolatileDream Mar 10, 2021
f10c32b
Adds <hr> to Missing Plugin
VolatileDream Mar 10, 2021
60c1e3a
Adds Event Plugin to default config
VolatileDream Mar 10, 2021
ce0c0c7
readme update
VolatileDream Mar 10, 2021
cbae83d
Disable Storage.Iterate when building items
VolatileDream Mar 10, 2021
0d78830
Removes ported plugins
VolatileDream Mar 10, 2021
5e62ae6
Adds graph command
VolatileDream Mar 11, 2021
465d684
Port Tapestry plugin over
VolatileDream Mar 11, 2021
42ae471
Add Tapestry to base install
VolatileDream Mar 11, 2021
7ce2a69
Adjust DirectivePlugin index structure
VolatileDream Mar 11, 2021
229bf2c
Fix event tests
VolatileDream Mar 11, 2021
ae6b5fa
Merge branch 'master' into python
VolatileDream Oct 10, 2022
bcc370e
correctly create new entries
VolatileDream Oct 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ The mini command line wiki

`mwiki` is a very minimal command line wiki. It supports almost none of the traditional wiki features, opting instead to provide easy page linking, and a simple command line interface.

`mwiki` depends on [Tup], and is setup to leverage the power of the build system (Tup) to generate it's pages. This allows `mwiki` to provide a sensible default for building pages, and then ignore exactly how pages end up getting built.

By modifying the build system rules, `mwiki` can support plugins that do all sorts of things. For example, generate a meta-page that lists all of the dead links (see plugins/missing/run).
`mwiki` depends on [python3] and [sqlite]. Internally it implements a pseudo build system (like [Make] or [Tup]), and provides a standardized plugin architecture for adding new functionality.

---

Expand All @@ -29,15 +27,16 @@ By modifying the build system rules, `mwiki` can support plugins that do all sor

`mwiki` depends on a few different programs, and can be extended to use even more. They are:

* python3
* sensible-browser - configure via BROWSER variable
* sensible-editor - configure via EDITOR variable
* [Tup]

Some of the plugins used my mwiki also depend on other programs. They include:

* swish++ - search++ plugin
* python3 - tapestry plugin

Not mentioned in either list is the large set of standard unix utils, such as awk, sed, find, etc.
* bash & other unix utilities - journal plugin

[Tup]: https://github.com/gittup/tup
[Make]: https://www.gnu.org/software/make/
[python3]: https://python.org
[sqlite]: https://sqlite.org
4 changes: 0 additions & 4 deletions base_install/plugin.d/events/rules

This file was deleted.

62 changes: 0 additions & 62 deletions base_install/plugin.d/events/run

This file was deleted.

11 changes: 0 additions & 11 deletions base_install/plugin.d/html/rules

This file was deleted.

25 changes: 0 additions & 25 deletions base_install/plugin.d/html/run

This file was deleted.

4 changes: 0 additions & 4 deletions base_install/plugin.d/html_index/rules

This file was deleted.

54 changes: 0 additions & 54 deletions base_install/plugin.d/html_index/run

This file was deleted.

27 changes: 0 additions & 27 deletions base_install/plugin.d/mentions/extractor

This file was deleted.

13 changes: 0 additions & 13 deletions base_install/plugin.d/mentions/indexer

This file was deleted.

7 changes: 0 additions & 7 deletions base_install/plugin.d/mentions/rules

This file was deleted.

6 changes: 0 additions & 6 deletions base_install/plugin.d/missing/rules

This file was deleted.

64 changes: 0 additions & 64 deletions base_install/plugin.d/missing/run

This file was deleted.

3 changes: 0 additions & 3 deletions base_install/plugin.d/quotes/rules

This file was deleted.

24 changes: 0 additions & 24 deletions base_install/plugin.d/quotes/run

This file was deleted.

12 changes: 0 additions & 12 deletions base_install/plugin.d/render/rules

This file was deleted.

23 changes: 0 additions & 23 deletions base_install/plugin.d/render/run

This file was deleted.

Loading