How to hide Intro/Index Page in TOC of Jupyterbook? - jupyter

The Documentation of Jupyter Book is not showing the Intro/Index Page in the TOC on the left sidebar. That's what I want for my book.
The Documentation does not explain how to do this. Does anyone know?
Jupyterbook: Structure the Table of Content

In the _config.yml file, you should add the following entry:
html:
home_page_in_navbar: false # Whether to include your home page in the left Navigation Bar
You can see the full configuration file and its defaults in the JupyterBook documentation:
https://jupyterbook.org/en/stable/customize/config.html

Related

How to set up a TypoScript Playground in Typo 3?

How can one play around with TypoScript code shown in documentations about TypoScript?
Tested with a local Typo3 test instance, Typo3 version 9.5.5, Official Introduction Package installed.
In the backend, create a new page in the tree. Rightclick -> enable it (the red overlay should disappear). Make sure it is selected in the tree.
Click on the blue Template button on the left. Usually it will show you the blue No Template message.
Make sure on the top Info/Modify is selected from the drop down.
Click the gray + (New record) button under the drop down.
On the bottom, click Edit the whole template record.
Optionally give it a speaking template and website title, like 'Playaround' and 'Play Around'.
Optionally, under tab Options -> Clear, select Constants and Setup - this will clear everything this Template has inherited from parent templates, but will also disable the debug infos at the bottom of the frontend for this page (if you have installed the Official Introduction Package).
Under the tab General -> text entry Setup, enter the following TypoScript:
page = PAGE
page.10 = TEXT
page.10.value = Hello World
press the Save and then the View button.
A new tab opens, showing you the frontend for your page, printing the text 'Hello World'.
Now you can play around with the code examples given in eg. the TypoScript Reference.
Funnily enough, I just found out that Typoscript is by definition not a programming language, but a configuration description. That's why Typo3 is needed as a substructure for this, I think. There seem to be online demos of Typo3 on the net, but I don't know whether they are up to date and whether you can test TypoScript there. Therefore access local containers / installations as suggested. Or if the possibility exists a dev subdomain.

Plunker Readme.md does not show in embedded preview?

I have written some markdown text in the README.md of a plunk. If I open the Embedded View, and click View the project details button on the top right, the README.md text does not show, just the name of the Plunk and the creator are displayed.
Also, on the Info panel, the markdown does not display the code syntax highlighting - it puts it in a code block, but without the highlighting
```javascript
"use babel";
document.onload = (e) => {
alert('I just annoyed whoever visited this page! USING ES6!');
};
```
Anyone have any info or advice on this?
In order to create an embedded plunk that displays a rendered version of a Markdown (or other) file as the default view, two things need to be done:
show=preview - Tell the embed that the only pane to be shown should be the preview pane. You could also say show=script.js,preview to tell the embed to show the script.js file and the preview.
preview=README.md - Tell the embed that instead of opening the default / preview, to use a specific file. The filename specified does not need to be exact; preview=readme will also work.
For example, here is a link that demonstrates this for the plunk you provided: https://embed.plnkr.co/2mIgB8pGRO7pHXpKJWxj/?show=preview&preview=readme
These, and other supported configuration options, for the embed view are detailed in this gitbook page.

Breadcrumb doesn't work on a component I created (Joomla!)

I'm learning how to use Joomla! 3.2
I created a new component, then I added it to my main menu,
Here are the only parameters I changed in the main menu:
But now when I go to my new component the breadcrumb doesn't work correctly, there's only the home button and when I click on it I'm redirected to the same page:
Did i missed something very important? How can I fix it? The breadcrumb works on every other pages.
Ok I found the problem, I forgot to add this
$pathway = $app->getPathway();
$breadcrumb = $pathway->setPathway(array());
$pathway->addItem( JText::_( 'COM_PARTISPOLITIQUES' ),JRoute::_('index.php?option=com_partispolitiques&view=partispolitique'));
$pathway->addItem( "Current page name",'');
In the file view.html.php located in my component folder...
I am going to assume you are using the Helix template as it seems to be a common oversight.
Make sure that Enable Page Title is enabled from your menu Helix Page Title tab.
If not, please advise as to what template.

How to get page link on time of my jekyll site

If you goto my jekyll site at the following url
http://xxxx.com
you will see on the time categories, pages, tages, archive and I would like to find a what to put a link right to my resume page on top too.
I am using github, jekyll and the hoolign theme. please help me out
Jekyll Bootstrap uses site.pages and loops through them to create the Top Nav.
So to add your Resume to that list, you need to do this:
Assuming your Resume is here: Jekyll Bootstrap Root Directory -> /resume/index.md.
At the top of /resume/index.md add this single line group: navigation to your YAML Front Matter after your title:
---
layout: page
title: Resume
group: navigation
---
See this file in JB, which explains:
https://github.com/plusjade/jekyll-bootstrap/blob/master/_includes/JB/pages_list
EDIT: Oh, I see you are using /resume.md and /resume/index.md for the same content. So add the group: navigation line to the one which you want in the main nav, but not both.

TYPO3 footer menu

I wonder what is the best way to do this.
I have two menues on the template for the first two levels of the navigation. They are separate, because they are on slightly different locations on the page.
Now, I used to put all my special meta-nav and footer pages into a sysfolder. That actually works pretty fine with special.directory. So far all good.
But when I open a link from the footer, the footer menu's links are shown in the 2nd-level HMENU. It makes more or less sense as the pages are in a sub-folder and therefore 2nd-level. , but they are in a folder.. So I guessed it should work.
My solution is to hide all pages in the sys-folder and in the footer menu using includeNotInMenu. That works, but I wonder if there is a cleaner solution to avoid sys-folder's content to be treated as 2nd-level pages. I don't like the editor to have to remember to hide the pages to get the expected result.
Thank you
i guess you are asking for "hide in menus". Edit your page sitemap, go to tab "access" select "hide" below "In Menus". Sitemap will not be shown in your menu, as long as you do not set "includeNotInMenu" in your menu rendering.
# assume 12 is the uid of your folder
[PIDinRootline = 12]
# Delete the menu
lib.yourmenu >
# or overwrite it:
lib.yourmenu = TEXT
lib.yourmenu.value = there is nothing to see here
[end]
Using conditions is more difficult to debug. You need to select them in TypoScript Object-Browser, if you want to see the effect of an condition.
You can sent an entryLevel
Defines at which level in the rootLine, the menu should start. Default
is "0" which gives us a menu of the very first pages on the site.
If the value is < 0, entryLevel is chosen from "behind" in the
rootLine. Thus "-1" is a menu with items from the outermost level,
"-2" is the level before the outermost...
See http://wiki.typo3.org/TSref/HMENU
I'm not sure I understand.. Assume I have the following structure
home
home/subpage1
home/subpage2
meta-nav
meta-nav/sitemap
meta-nav/impressum
-> meta-nav is a folder.
Now I have a HMENU for the 2nd level and it shows (depending on the selected page):
(subpage1 and subpage2) or (sitemap and impressum)
Now what I want to achieve is to open the sitemap or the impressum and not see those in the HMENU.
Sorry if that all sounds strange ;-)