• User Guide → Adding Pages

    Adding Pages

    It is easy to add files to a MarkBind site as any file inside the root directory becomes a part of the generated website.

    Example: If you have a file tutorial/code.txt in your root directory, it will be available as <website-url>/tutorial/code.txt in the generated website.

    You can specify which files to be omitted from the site by using the ignore field in the site.config file as explained here.

    More importantly, .md and .mbd files can be transformed into html pages with matching names.

    Example: <root>/tutorial/setup.md can be transformed into <website-url>/tutorial/setup.html

    Here are the steps to add a new page to your site:

    1. Add a .md (or .mbd) file anywhere inside the root directory.
    2. Update the pages attribute of the site.json to cover the new file, if necessary.
    3. Use the live preview to view the generated web page for the new file.
    Live preview is the regenerating the site upon any change to source files and reloading the updated site in the Browser.

    Live preview works for the following file types only: css, .html, .md, .mbd, .mbdf. Changes to css might may not be visible in the site until you do a manual refresh of the page.

    Use the serve command to launch a live preview.

    Authoring Contents

    MarkBind Syntax Overview