{"id":73070,"date":"2023-05-02T09:03:02","date_gmt":"2023-05-02T09:03:02","guid":{"rendered":"https:\/\/www.cryptocabaret.com\/?p=73070"},"modified":"2023-05-02T09:03:02","modified_gmt":"2023-05-02T09:03:02","slug":"generate-web-pages-from-markdown-with-docsify-this","status":"publish","type":"post","link":"https:\/\/www.cryptocabaret.com\/?p=73070","title":{"rendered":"Generate web pages from Markdown with Docsify-This"},"content":{"rendered":"<p><span class=\"field field--name-title field--type-string field--label-hidden\">Generate web pages from Markdown with Docsify-This<\/span><br \/>\n<span class=\"field field--name-uid field--type-entity-reference field--label-hidden\"><a title=\"View user profile.\" href=\"https:\/\/opensource.com\/users\/paulhibbitts\" class=\"username\">paulhibbitts<\/a><\/span><br \/>\n<span class=\"field field--name-created field--type-created field--label-hidden\">Tue, 05\/02\/2023 &#8211; 03:00<\/span><\/p>\n<div class=\"clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item\">\n<p>Are you interested in leveraging Markdown for online content without any website setup or build process? How about seamlessly embedding constraint-free Markdown or HTML into multiple platforms (such as a content management system or learning management system)? The open source project <a href=\"https:\/\/docsify-this.net\/\" target=\"_blank\" rel=\"noopener\">Docsify-This<\/a>, built with <a href=\"https:\/\/docsify.js.org\/\" target=\"_blank\" rel=\"noopener\">Docsify.js<\/a>, provides an easy way to publish, share, and reuse Markdown content.<\/p>\n<p><strong>[ Get the <a href=\"https:\/\/opensource.com\/downloads\/cheat-sheet-markdown\" target=\"_blank\" rel=\"noopener\">Markdown cheat sheet<\/a> ]<\/strong><\/p>\n<h2>What is Docsify-This?<\/h2>\n<p>With Docsify-This, you can instantly turn any publicly available Markdown file into a responsive standalone web page. You can also link multiple Markdown files to create a simple website. Designers can alter the visual appearance of displayed pages with the point-and-click Web Page Builder interface or URL parameters. You can also use a set of provided Markdown CSS classes when creating your own Markdown content. In addition, if you use Codeberg or GitHub to store your Markdown files, an <strong>Edit this Page<\/strong> link can be automatically provided for each page to support collaborative authoring.<\/p>\n<p>It&#8217;s open source, so you can host a Docsify-This instance using your own custom domain without the risk of platform lock-in.<\/p>\n<h2>Use the Docsify-This Web Page Builder<\/h2>\n<p>To use the Web Page Builder, open a browser and navigate to the <a href=\"https:\/\/docsify-this.net\/\" target=\"_blank\" rel=\"noopener\">Docsify-This website<\/a> or your local instance. In the <strong>Web Page Builder<\/strong> section, enter the URL of a Markdown file in a public repo of Codeberg or GitHub (other Git hosts can also be used via Docsify-This URL parameters but not in the Web Page Builder), and then click the <strong>Publish as Standalone Web Page<\/strong> button.<\/p>\n<article class=\"align-center media media--type-image media--view-mode-default\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/opensource.com\/sites\/default\/files\/2023-04\/docsify-this-web-page-builder.webp\" width=\"2028\" height=\"1441\" alt=\"The Docsify-This web page builder interface\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>(Paul Hibbitts, CC BY-A 4.0)<\/p>\n<\/div>\n<\/article>\n<p>The Markdown file is rendered as a standalone web page with a URL you can copy and share. Here&#8217;s an example URL:<\/p>\n<pre>\n<code class=\"language-html\">https:\/\/docsify-this.net\/?basePath=https:\/\/raw.githubusercontent.com\/hibbitts-design\/docsify-this-one-page-article\/main&amp;homepage=home.md<\/code><\/pre>\n<p>Docsify-This rendered web pages are perfect for embedding, with the ability to visually style Docsify-This pages to the destination platform.<\/p>\n<article class=\"align-center media media--type-image media--view-mode-default\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/opensource.com\/sites\/default\/files\/2023-04\/docsify-this-rendered-markdown-file.webp\" width=\"2083\" height=\"1360\" alt=\"Docsify-This rendered Markdown file\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>(Paul Hibbitts, CC BY-A 4.0)<\/p>\n<\/div>\n<\/article>\n<h2>Render other files in the same repository<\/h2>\n<p>You can render other Markdown files in the same repository by directly editing the Docsify-This URL parameter <strong>homepage<\/strong>. For example:<\/p>\n<pre>\n<code class=\"language-html\">https:\/\/docsify-this.net\/?basePath=https:\/\/raw.githubusercontent.com\/hibbitts-design\/docsify-this-one-page-article\/main&amp;homepage=anotherfile.md<\/code><\/pre>\n<h2>Modify the web page&#8217;s appearance<\/h2>\n<p>You can change the appearance of any Markdown file displayed in Docsify-This by using <a href=\"https:\/\/docsify-this.net\/#\/?id=page-appearance-url-parameters\" target=\"_blank\" rel=\"noopener\">URL parameters<\/a>. For example, <code>font-family<\/code>, <code>font-size<\/code>, <code>link-color<\/code>, and <code>line-height<\/code> are all common CSS attributes and are valid parameters for Docsify-This:<\/p>\n<pre>\n<code>https:\/\/docsify-this.net\/?basePath=https:\/\/raw.githubusercontent.com\/hibbitts-design\/docsify-this-one-page-article\/main&amp;homepage=home.md&amp;font-family=Open%20Sans,sans-serif<\/code><\/pre>\n<p>You can also alter the visual appearance using a set of special <a href=\"https:\/\/docsify-this.net\/#\/?id=supported-markdown-css-classes\" target=\"_blank\" rel=\"noopener\">Markdown CSS classes<\/a>. For example, you can add the <code>button<\/code> class to a link:<\/p>\n<pre>\n<code class=\"language-text\">[Required Reading Quiz due Jun 4th](https:\/\/canvas.sfu.ca\/courses\/44038\/quizzes\/166553 ':class=button')  <\/code><\/pre>\n<p>This produces a button image instead of just a text link:<\/p>\n<article class=\"align-center media media--type-image media--view-mode-default\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/opensource.com\/sites\/default\/files\/2023-04\/button.webp\" width=\"612\" height=\"84\" alt=\"A button rendered by Docsify-This\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>(Paul Hibbitts, CC BY-A 4.0)<\/p>\n<\/div>\n<\/article>\n<p>In addition to the Markdown CSS classes supported by Docsify-This, you can define your own custom classes within your displayed Markdown files. For example:<\/p>\n<pre>\n<code class=\"language-text\">\n\n[Custom CSS Class Button](# ':class=mybutton')<\/code><\/pre>\n<p>Produces this:<\/p>\n<article class=\"align-center media media--type-image media--view-mode-default\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/opensource.com\/sites\/default\/files\/2023-04\/custom-css-button.webp\" width=\"528\" height=\"86\" alt=\"A custom button image rendered with Docsify-This\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>(Paul Hibbitts, CC BY-A 4.0)<\/p>\n<\/div>\n<\/article>\n<h2>Include HTML snippets<\/h2>\n<p>As supported by standard Markdown, you can include HTML snippets. This allows you to add layout elements to your HTML render. For example:<\/p>\n<pre>\n<code class=\"language-html\"><div class=\"row\">\n<div class=\"column\">\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\n\n<\/div>\n<div class=\"column\">\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\n\n<\/div>\n<\/div><\/code><\/pre>\n<h2>Embed Docsify-This as an iFrame<\/h2>\n<p>You can embed Docsify-This web pages using an iFrame in almost any platform. You can also use URL parameters to ensure your embedded content matches your destination platform:<\/p>\n<pre>\n<code class=\"language-html\"><p><\/p><\/code><\/pre>\n<article class=\"align-center media media--type-image media--view-mode-default\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/opensource.com\/sites\/default\/files\/2023-04\/docsify-this-iframe.webp\" width=\"2872\" height=\"1484\" alt=\"A Docsify-This page embedded in an LMS\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>(Paul Hibbitts, CC BY-A 4.0)<\/p>\n<\/div>\n<\/article>\n<h2>Embed Docsify-This with an external URL<\/h2>\n<p>In certain learning management systems (LMS), including the open source <a href=\"https:\/\/opensource.com\/article\/21\/3\/moodle-plugins\" target=\"_blank\" rel=\"noopener\">Moodle<\/a>\u00a0and even the proprietary <a href=\"https:\/\/github.com\/instructure\/canvas-lms\" target=\"_blank\" rel=\"noopener\">Canvas<\/a>, you can link external web pages to a course navigation menu and sometimes more. For example, you can use the Redirect Tool in Canvas to display Docsify-This web pages.<\/p>\n<pre>\n<code class=\"language-html\">url=https:\/\/docsify-this.net\/?basePath=https:\/\/raw.githubusercontent.com\/paulhibbitts\/cmpt-363-222-pages\/main&amp;homepage=resources.md&amp;edit-link=https:\/\/github.com\/paulhibbitts\/cmpt-363-222-pages\/blob\/main\/resources.md&amp;font-family=Lato%20Extended,Lato,Helvetica%20Neue, Helvetica,Arial,sans-serif&amp;font-size=1&amp;hide-credits=true<\/code><\/pre>\n<\/p>\n<div class=\"callout-float-right embedded-resource-list\" data-analytics-region=\"sidebar\">\n<div class=\"field field--name-title field--type-string field--label-hidden field__item\">Our favorite resources about open source<\/div>\n<div class=\"field field--name-links field--type-link field--label-hidden field__items\">\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/downloads\/cheat-sheet-git?intcmp=7016000000127cYAAQ\" data-analytics-category=\"resource list\" data-analytics-text=\"Git cheat sheet\">Git cheat sheet<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/developers.redhat.com\/cheat-sheets\/advanced-linux-commands\/?intcmp=7016000000127cYAAQ\" data-analytics-category=\"resource list\" data-analytics-text=\"Advanced Linux commands cheat sheet\">Advanced Linux commands cheat sheet<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/tags\/alternatives?intcmp=7016000000127cYAAQ\" data-analytics-category=\"resource list\" data-analytics-text=\"Open source alternatives\">Open source alternatives<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/www.redhat.com\/en\/services\/training\/rh024-red-hat-linux-technical-overview?intcmp=7016000000127cYAAQ\" data-analytics-category=\"resource list\" data-analytics-text=\"Free online course: RHEL technical overview\">Free online course: RHEL technical overview<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/console.redhat.com\/?intcmp=7016000000127cYAAQ\" data-analytics-category=\"resource list\" data-analytics-text=\"Register for your free Red Hat account\">Register for your free Red Hat account<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/downloads\/cheat-sheets?intcmp=7016000000127cYAAQ\" data-analytics-category=\"resource list\" data-analytics-text=\"Check out more cheat sheets\">Check out more cheat sheets<\/a><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<h2>Integrate Docsify-This and Git<\/h2>\n<p>To fully leverage the benefits of version control and potentially collaboration using an optional <strong>Edit this Page<\/strong> link, store your Docsify-This Markdown pages in a Git repository on either Codeberg or GitHub. Several open source tools provide a graphical interface for Git, including <a href=\"https:\/\/github.com\/desktop\/desktop\" target=\"_blank\" rel=\"noopener\">GitHub Desktop<\/a> (recently released as open source), <a href=\"https:\/\/opensource.com\/article\/20\/3\/git-cola\" target=\"_blank\" rel=\"noopener\">Git-Cola<\/a>, and <a href=\"https:\/\/opensource.com\/article\/19\/4\/file-sharing-git\" target=\"_blank\" rel=\"noopener\">SparkleShare<\/a>. The text editors VSCode and Pulsar Edit (formerly <a href=\"https:\/\/opensource.com\/article\/20\/12\/atom\" target=\"_blank\" rel=\"noopener\">Atom.io<\/a>) both feature Git integration, too.<\/p>\n<p><strong>[ Get the <a href=\"https:\/\/opensource.com\/downloads\/git-tricks-tips\" target=\"_blank\" rel=\"noopener\">Git tips and tricks<\/a> eBook ]<\/strong><\/p>\n<h2>Markdown publishing made easy<\/h2>\n<p>The benefits of Markdown-based publishing are available to everyone, thanks to Docsify. And thanks to Docsify-This, it&#8217;s easier than ever. Try it out at the\u00a0<a href=\"https:\/\/docsify-this.net\/\" target=\"_blank\" rel=\"noopener\">Docsify-This website<\/a>.<\/p>\n<\/div>\n<div class=\"clearfix text-formatted field field--name-field-article-subhead field--type-text-long field--label-hidden field__item\">\n<p>This open source tool makes it easier than ever to convert Markdown to web pages.<\/p>\n<\/div>\n<div class=\"field field--name-field-lead-image field--type-entity-reference field--label-hidden field__item\">\n<article class=\"media media--type-image media--view-mode-caption\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.cryptocabaret.com\/wp-content\/uploads\/2023\/05\/browser_web_internet_website.png\" width=\"1040\" height=\"584\" alt=\"Digital creative of a browser on the internet\" title=\"Digital creative of a browser on the internet\"><\/div>\n<\/article>\n<\/div>\n<div class=\"field field--name-field-tags field--type-entity-reference field--label-hidden field__items\">\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/tags\/web-development\" hreflang=\"en\">Web development<\/a><\/div>\n<\/p><\/div>\n<div class=\"field field--name-field-listicle-title field--type-string field--label-hidden field__item\">What to read next<\/div>\n<div class=\"field field--name-field-listicles field--type-entity-reference field--label-hidden field__items\">\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/article\/23\/4\/open-source-design-system-patternfly\" hreflang=\"en\">5 best practices for PatternFly, an open source design system<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/article\/23\/4\/my-website-compromised\" hreflang=\"en\">How I learned the hard way to keep my website updated<\/a><\/div>\n<\/p><\/div>\n<div class=\"field field--name-field-default-license field--type-list-string field--label-hidden field__item\"><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><br \/>\n        <img decoding=\"async\" alt=\"Creative Commons License\" src=\"https:\/\/www.cryptocabaret.com\/wp-content\/uploads\/2023\/05\/cc-by-sa-4.png\" title=\"This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.\"><\/a>This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.<\/div>\n<section class=\"field field--name-field-comments field--type-comment field--label-hidden comment-wrapper\">\n<div class=\"comments__count\">\n<div class=\"login\"><a href=\"https:\/\/opensource.com\/user\/register?absolute=1\">Register<\/a> or <a href=\"https:\/\/opensource.com\/user\/login?current=\/feed&amp;absolute=1\">Login<\/a> to post a comment.<\/div>\n<\/p><\/div>\n<\/section>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\" rel=\"noopener\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generate web pages from Markdown with Docsify-This paulhibbitts Tue, 05\/02\/2023 &#8211; 03:00 Are you interested in leveraging Markdown for online content without any website setup or build process? How about seamlessly embedding constraint-free Markdown or HTML into multiple platforms (such as a content management system or learning management system)? The open source project Docsify-This, built [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":73071,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[307],"tags":[],"class_list":["post-73070","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source"],"_links":{"self":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/73070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73070"}],"version-history":[{"count":0,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/73070\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/media\/73071"}],"wp:attachment":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}