{"id":21159,"date":"2024-02-04T11:25:19","date_gmt":"2024-02-04T11:25:19","guid":{"rendered":"https:\/\/afreeurl.com\/?p=21159"},"modified":"2024-02-04T11:25:22","modified_gmt":"2024-02-04T11:25:22","slug":"switching-documentation-from-sphinx-to-mkdocs-what-have-i-gained-and-what-have-i-lost-by-kay-jan-wong-february-2024","status":"publish","type":"post","link":"https:\/\/afreeurl.com\/?p=21159","title":{"rendered":"Switching documentation from Sphinx to MkDocs: what have I gained and what have I lost?  |  by Kay Jan Wong |  February, 2024"},"content":{"rendered":"<p><\/p>\n<h2 id=\"c868\" class=\"pw-subtitle-paragraph hs gy gz be b ht hu hv hw hx hy hz ia ib ic id ie if ig ih cp dt\">Guide to carry out this change and a comparison between them<\/h2>\n<p><a href=\"https:\/\/kayjanwong.medium.com\/?source=post_page-----04080338ad38--------------------------------\" rel=\"noopener follow\" target=\"_blank\"><\/a><img decoding=\"async\" alt=\"Towards data science\" class=\"l fa bx bq jd cw\" src=\"https:\/\/miro.medium.com\/v2\/resize:fill:48:48\/1*CJe3891yB1A1mzMdqemkdg.jpeg\" width=\"24\" height=\"24\" loading=\"lazy\" data-testid=\"publicationPhoto\"\/><img alt=\"Photo by melanfolia on Unsplash\" class=\"bg mt nz c\" width=\"700\" height=\"1050\" loading=\"eager\"\/>Photo of <a class=\"af oe\" href=\"https:\/\/unsplash.com\/@melanfolia?utm_source=medium&#038;utm_medium=referral\" rel=\"noopener ugc nofollow\" target=\"_blank\">melancholy<\/a> activated <a class=\"af oe\" href=\"https:\/\/unsplash.com\/?utm_source=medium&#038;utm_medium=referral\" rel=\"noopener ugc nofollow\" target=\"_blank\">unsplash<\/a><\/p>\n<p id=\"fe2d\" class=\"pw-post-body-paragraph of og gz oh b ht oi oj ok hw ol om on oo op oq or os ot ou ov ow ox oy oz pa gs bj\">&#8220;A project is only as good as its documentation,&#8221; a quote from my previous 3-part article series that emphasizes the importance of documentation.  Since then I have learned that there are different types of documentation, the most common are:<\/p>\n<p><strong class=\"oh ha\">Technical documentation<\/strong>: Describe the technical aspects of the internal operation of the project, it can be process documentation or product documentation.<strong class=\"oh ha\">Business documentation<\/strong>: Describe what business problems they solve or what business goals they achieve<\/p>\n<p id=\"09f3\" class=\"pl pm gz be pn po pp pq pr ps pt pa dt\">There is a type of documentation that falls in between, these are manuals, guides and tutorials.  This is especially important if you want to <strong class=\"al\">technical users<\/strong> to work on or use your project, or <strong class=\"al\">business users <\/strong>to understand your project and gain buy-in.<\/p>\n<p id=\"78d8\" class=\"pw-post-body-paragraph of og gz oh b ht pu oj ok hw pv om on oo pw oq or os px ou ov ow py oy oz pa gs bj\">As documentation becomes more complex with more content, it can be difficult to display it in one <strong class=\"oh ha\">easy to use and readable format<\/strong>.  For example, tutorials should not be embedded in technical documentation, and ideally there should be a separate tab or navigation section between them.<\/p>\n<p id=\"3a30\" class=\"pw-post-body-paragraph of og gz oh b ht oi oj ok hw ol om on oo op oq or os ot ou ov ow ox oy oz pa gs bj\">This made me explore more Sphinx themes to make my documentation more beautiful and to be able to manage more information.  I ended up being attracted <a class=\"af oe\" href=\"https:\/\/bashtage.github.io\/sphinx-material\/\" rel=\"noopener ugc nofollow\" target=\"_blank\">Sphinx-Material<\/a> i <a class=\"af oe\" href=\"https:\/\/jbms.github.io\/sphinx-immaterial\/\" rel=\"noopener ugc nofollow\" target=\"_blank\">Sphinx-Immaterial<\/a> themes that implement the MkDocs Material theme.  After many tweaks, and still not getting the results I wanted, I changed <a class=\"af oe\" href=\"https:\/\/squidfunk.github.io\/mkdocs-material\/\" rel=\"noopener ugc nofollow\" target=\"_blank\">MkDocs<\/a> and finally understood the hype about MkDocs.<\/p>\n<p id=\"2337\" class=\"pw-post-body-paragraph of og gz oh b ht oi oj ok hw ol om on oo op oq or os ot ou ov ow ox oy oz pa gs bj\">Having tried several methods and documentation topics, I will try to compare them, focusing on the <strong class=\"oh ha\">features won and lost<\/strong> of switching from Sphinx to MkDocs.  Finally, this article will end with important MkDocs settings to incorporate for more optimal documentation!<\/p>\n<p id=\"7031\" class=\"of og pb oh b ht oi oj ok hw ol om on oo op oq or os ot ou ov ow ox oy oz pa gs bj\"><strong class=\"oh ha\">note<\/strong>: If you are interested, this is the one <a class=\"af oe\" href=\"https:\/\/bigtree.readthedocs.io\/en\/0.15.7\/\" rel=\"noopener ugc nofollow\" target=\"_blank\">link<\/a> in my documentation made with the Sphinx-Material theme, and this is the <a class=\"af oe\" href=\"https:\/\/bigtree.readthedocs.io\/en\/0.16.1\/\" rel=\"noopener ugc nofollow\" target=\"_blank\">link<\/a> to the same documentation made with MkDocs \ud83d\ude42<\/p>\n<p>[ad_2]<br \/>\n<br \/><a href=\"https:\/\/towardsdatascience.com\/switching-from-sphinx-to-mkdocs-documentation-what-did-i-gain-and-lose-04080338ad38\" target=\"_blank\" rel=\"noopener\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guide to carry out this change and a comparison between them Photo of melancholy activated unsplash &#8220;A project is only as good as its documentation,&#8221; a quote from my previous 3-part article series that emphasizes the importance of documentation. Since then I have learned that there are different types of documentation, the most common are: Technical documentation: Describe the technical aspects of the internal operation of the project, it can be process documentation or product&#8230; <\/p>\n","protected":false},"author":1,"featured_media":21160,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-21159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo-news"],"_links":{"self":[{"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/posts\/21159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afreeurl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21159"}],"version-history":[{"count":1,"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/posts\/21159\/revisions"}],"predecessor-version":[{"id":21161,"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/posts\/21159\/revisions\/21161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/afreeurl.com\/index.php?rest_route=\/wp\/v2\/media\/21160"}],"wp:attachment":[{"href":"https:\/\/afreeurl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afreeurl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afreeurl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}