diff --git a/README.md b/README.md index 231a499c0d66c1385db3b8cc36376409f0521004..049613518a139169216866d3c2f7fb4695431f4d 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,13 @@ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy ``` If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. + +## Create a new page + +We have two different ways to create a new page, in JavaScript, or, in Markdown: + +- If we don't need a specific layout, we recommend to create a page in Markdown, with `.md` extention. +- If we need to specific layout, create a page in JavaScript with `.js` extention. + +This offers a better return on investment because the Markdown (`.md`) is faster to do. + diff --git a/src/pages/dummy_page.js b/src/pages/dummy_page.js deleted file mode 100644 index 9a2f844c73359723bdaf5be9f96240f638d749a3..0000000000000000000000000000000000000000 --- a/src/pages/dummy_page.js +++ /dev/null @@ -1,23 +0,0 @@ -import React from "react"; -import Layout from "@theme/Layout"; - -function Dummy() { - return ( - <Layout title="Bonjour"> - <div - style={{ - display: "flex", - justifyContent: "center", - alignItems: "center", - height: "50vh", - fontSize: "20px", - }}> - <p> - Editez <code>pages/dummy.js</code> et sauvegardez pour recharger. - </p> - </div> - </Layout> - ); -} - -export default Dummy; diff --git a/src/pages/dummy_page.md b/src/pages/dummy_page.md new file mode 100644 index 0000000000000000000000000000000000000000..728f2e166d7492c540c6f56155199859ecca861c --- /dev/null +++ b/src/pages/dummy_page.md @@ -0,0 +1,8 @@ +--- +title: dummy +description: page factice +--- + +# Page factice + +Page factice penser à créer une vraie page !