From fbf5677ef02540419f9942a86d51a5e1276ef6c1 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Thu, 1 Feb 2018 03:54:49 +0000 Subject: [PATCH] Deploy website Deploy website version based on 65da4e21b38bfe646c45f70b9cc57826c21a5850 --- docs/en/custom-pages.html | 3 +++ docs/en/site-config.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/en/custom-pages.html b/docs/en/custom-pages.html index e6ebb7558a..348b8278da 100644 --- a/docs/en/custom-pages.html +++ b/docs/en/custom-pages.html @@ -33,6 +33,9 @@

Adding Static Pages

Static .html files can also be used, but they will not include Docusaurus's header, footer, or styles by default. These can be added to the static folder in the same way as other static assets. Alternatively, they can be placed in the pages folder and would be served as-is instead of being rendered from React.

If you wish to use Docusaurus's stylesheet, you can access it at ${baseUrl}css/main.css. If you wish to use separate css for these static pages, you can exclude them from being concatenated to Docusaurus's styles by adding them into the siteConfig.separateCss field in siteConfig.js.

+
+

You can set the $wrapPagesHTML site config option in order to wrap raw HTML fragments with the Docusaurus site styling, header and footer.

+

Customizing Your Site Footer

Starting from the example core/Footer.js file that was created when you ran the Docusaurus initialization script, edit the footer to include any links to pages on your site or other sites that you wish to have.

The example provided has three columns with a footer image on the left and Facebook's open source logo and copyright at the bottom. If your project is not a Facebook open source project, remove the logo and copyright. Otherwise, feel free to get creative with your footer and make it look however you'd like!

diff --git a/docs/en/site-config.html b/docs/en/site-config.html index 8bbea49c0c..2b50567025 100644 --- a/docs/en/site-config.html +++ b/docs/en/site-config.html @@ -88,7 +88,7 @@
  • defaultLang defines a default language. It will be used if one is not specified at the top of the code block. You can find the list of supported languages here.
  • markdownPlugins - An array of plugins to be loaded by Remarkable, the markdown parser and renderer used by Docusaurus. The plugin will receive a reference to the Remarkable instance, allowing custom parsing and rendering rules to be defined.

    -

    wrapPagesHTML - boolean flag to indicate whether html files in /pages should be wrapped with Docusaurus styles with the site header and footer. This feature is experimental and relies on the files being html fragments instead of complete pages. It inserts the contents of your html file with no extra processing. Defaults to false.

    +

    wrapPagesHTML - boolean flag to indicate whether html files in /pages should be wrapped with Docusaurus site styles, header and footer. This feature is experimental and relies on the files being html fragments instead of complete pages. It inserts the contents of your html file with no extra processing. Defaults to false.

    scripts - Array of JavaScript sources to load. The script tag will be inserted in the HTML head.

    stylesheets - Array of CSS sources to load. The link tag will be inserted in the HTML head.

    cname - The CNAME for your website. It will go into a CNAME file when your site it built.