Adding the "About this codelab" subsection in a main page

148 views
Skip to first unread message

Karen

unread,
Oct 6, 2021, 2:38:53 PM10/6/21
to codelab-authors
Hi all!

Wondering if anyone knows how to add the separate section within a page? I stumbled on these codelabs which have an "About this codelab" subsection on the first page: 

https://developers.google.com/codelabs/pwa-training/pwa03--going-offline#0

Wondering if anyone has tried this before. Can't figure out how to format the doc/markdown to show the subsection.

Thanks,
Karen

Karen

unread,
Oct 6, 2021, 3:48:36 PM10/6/21
to codelab-authors
Found a way to add the subsection.

Added the following line in the generated html file, right after <google-codelab-step label="Section 1" duration="0">:

<google-codelab-about codelab-title="Codelab Title" authors="me"></google-codelab-about>



Marc Cohen

unread,
Oct 6, 2021, 4:03:51 PM10/6/21
to Karen, codelab-authors
Hi Karen,

I think I have a way to accomplish this that avoids the need to edit the generated html. Insert the same html in your source markdown file but surround it with grave access symbols (`), like this:

`<google-codelab-about codelab-title="Write your first Flutter app, part 1" authors="The Flutter Team"></google-codelab-about>`

That way you get the desired output without having a manual post-processing step. Let me know if that works for you, it seems to work for me.

Marc

By communicating with Grab Inc and/or its subsidiaries, associate companies and jointly controlled entities (“Grab Group”), you are deemed to have consented to the processing of your personal data as set out in the Privacy Notice which can be viewed at https://grab.com/privacy/

This email contains confidential information and is only for the intended recipient(s). If you are not the intended recipient(s), please do not disseminate, distribute or copy this email Please notify Grab Group immediately if you have received this by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free as any information therein could be intercepted, corrupted, lost, destroyed, delayed or incomplete, or contain viruses. Grab Group do not accept liability for any errors or omissions in the contents of this email arises as a result of email transmission. All intellectual property rights in this email and attachments therein shall remain vested in Grab Group, unless otherwise provided by law.

--
You received this message because you are subscribed to the Google Groups "codelab-authors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codelab-autho...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/codelab-authors/4ef09627-c657-4ae1-8437-7e582423505bn%40googlegroups.com.


--
Marc Cohen
Web: mco.dev
Working with me: mco.dev/working-with-marc

Q: Why is this email three sentences or less?
Reply all
Reply to author
Forward
0 new messages