eddyluten / mkdocs-categories-plugin Goto Github PK
View Code? Open in Web Editor NEWAn MkDocs plugin allowing for categorization of wiki pages
License: MIT License
An MkDocs plugin allowing for categorization of wiki pages
License: MIT License
Hi @EddyLuten,
Thanks for writing this plugin! I ran some tests with it and all seemed fine while hosting the MkDocs site files from the root of the website, e.g. site_url: https://www.example.com
in mkdocs.yml
. However, I found that the plugin does not work properly when hosting the files in a subdirectory of the site. E.g. site_url: https://www.example.com/subdir
.
The problem lies in the fact that the plugin generates absolute links. Meaning: the category links on the category index page are always prefixed with /categories
; it does not take the subdir in account. The same is true for the category pages (which contain links to the pages on which the category is used on) and the 'normal' pages, on which the categories of that page are listed.
The MkDocs documentation states that absolute paths with links are not officially supported (source) and that relative paths are to be used.
I prepared a small patch which makes the plugin generate relative links. Could you please take a look at it and share your thoughts? Thanks!
-Remy
Is it possilbe to define a hierarchy of categories so that each category page shows both pages directly assigned to it, as well as child categories? This is standard in mediawiki.
For example, given the following hierarchy, there will be a Boeing category page that shows both any pages directly assigned to the Boeing category, and it will show two child categories: 737 Max and 737-300.
Vehicles
--Airplanes
----Boeing
------737 Max
------737-300
----Airbus
------A320neo
------A380
--Cars
----Tesla
------Model 3
------Model Y
----Ford
------Explorer
------Focus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.