diff --git a/README.md b/README.md index a0ba1ed..996e6a8 100755 --- a/README.md +++ b/README.md @@ -77,6 +77,10 @@ If you want to create a beautiful landing page for your project, simply create a Note: The image can be a local or remote image. +## Section landing page + +If you are interested in having a landing page for a subsection of your docs, all you need to do is add an `index.md` file to the folder. For example, `/docs/01_Examples` has a landing page for that section since there exists a `/docs/01_Examples/index.md` file. + ## Configuration To customize the look and feel of your documentation, you can create a `config.json` file in the of the `/docs` folder. The `config.json` file is a simple JSON object that you can use to change some of the basic settings of the documentation. diff --git a/docs/00_Getting_Started.md b/docs/00_Getting_Started.md index d1b0413..96c5029 100644 --- a/docs/00_Getting_Started.md +++ b/docs/00_Getting_Started.md @@ -77,6 +77,9 @@ If you want to create a beautiful landing page for your project, simply create a Note: The image can be a local or remote image. +## Section landing page + +If you are interested in having a landing page for a subsection of your docs, all you need to do is add an `index.md` file to the folder. For example, `/docs/01_Examples` has a landing page for that section since there exists a `/docs/01_Examples/index.md` file. ## Configuration To customize the look and feel of your documentation, you can create a `config.json` file in the of the `/docs` folder. The `config.json` file is a simple JSON object that you can use to change some of the basic settings of the documentation. diff --git a/docs/01_Examples/index.md b/docs/01_Examples/index.md new file mode 100644 index 0000000..b6889cb --- /dev/null +++ b/docs/01_Examples/index.md @@ -0,0 +1,2 @@ +### This is a landing page for the Examples section +Adding a landing page is pretty simple, all you need to do is add an "index.md" file to the related folder. \ No newline at end of file diff --git a/libs/live.php b/libs/live.php index 3ba2e66..0cc0e9a 100644 --- a/libs/live.php +++ b/libs/live.php @@ -33,8 +33,8 @@ else { if (empty($options['languages'])) return $base_doc; else { - $t = array_keys($base_doc); - return $base_doc[$t[0]]; + $t = array_keys($base_doc); + return $base_doc[$t[0]]; } } } else {