SlideShare a Scribd company logo
1 of 55
Download to read offline
MOVING FROM WORD TO THEMOVING FROM WORD TO THE
WEB VIA GITBOOK ANDWEB VIA GITBOOK AND
MARKDOWNMARKDOWN
BY ADAM J LIMBERTBY ADAM J LIMBERT
OBJECTIVESOBJECTIVES
Convert product documentation developed in
Microso Word to a website
Minimize rework (do it quickly)
Learn something new
Use existing tools (do not reinvent the wheel)
Use open source and free (or low cost) tools
Didn't want to buy into a proprietary framework
AN EXAMPLE TOOLCHAIN FOR CONVERSION...AN EXAMPLE TOOLCHAIN FOR CONVERSION...
1. Convert MS Word to Markdown using Pandoc
2. Edit and restructure resulting Markdown to suit
GitBook
Editing by hand
Topic-chunking using Python
Styling
3. Generate HTML and PDF
4. Consider the result, change tooling as needed
TOPIC-BASED WEBSITE WITH GITBOOKTOPIC-BASED WEBSITE WITH GITBOOK
Final Result: CProf User's Guide
MICROSOFT WORDMICROSOFT WORD
MICROSOFT WORD PRODUCT DOCUMENTATION...MICROSOFT WORD PRODUCT DOCUMENTATION...
...CONVERTED TO ADOBE PDF FOR DISTRIBUTION......CONVERTED TO ADOBE PDF FOR DISTRIBUTION...
PANDOCPANDOC
PANDOC: WHAT IS IT?PANDOC: WHAT IS IT?
Open source document converter
Free so ware, released under the GPL
Copyright John MacFarlane
Many formats supported
CONVERTING FROM MS WORD TO GITHUB-FLAVOREDCONVERTING FROM MS WORD TO GITHUB-FLAVORED
MARKDOWN (GFM)MARKDOWN (GFM)
1. Download and install .
2. Open a command prompt/shell (e.g. Powershell in Win
3. Execute the following command (replacing input.docx
Microso Word document of your choice):
Pandoc
pandoc -f docx -t markdown_github --extract-media=./ -o README
Parameter Function
-f docx Input format is MS Word docx
-t
markdown_github
Desired output format is
Github-flavored Markdown
--extract-media=./ Extract images from document
and store in current directory
-o README.md Output file name (containing
the Markdown)
pandoc -f docx -t markdown_github --extract-media=./ -o README.md input.do
Click here for full Pandoc command syntax
MARKDOWNMARKDOWN
MARKDOWN GENERATED BY PANDOCMARKDOWN GENERATED BY PANDOC
**CProf User’s Guide**
The product is a COPYRIGHT (c) system with all rights reserved
© Fundi Software
Changes since last release:
- Centralized monitoring and control of trace collection acr
- New CProf trace control program TXCCICS1 and associated
- The CProf trace viewer has moved to option **3 Trace** o
- All ad hoc batch collection modes are now grouped into new
MARKDOWN: WHAT IS IT?MARKDOWN: WHAT IS IT?
Markdown is a popular format with developers for
creating quick and easy documentation for so ware
projects. Its utility is clear on sites such as GitHub
where simple instructions and formatted code
samples can be viewed directly in Markdown without
additional styling, or as styled output within a web
browser.
HISTORYHISTORY
A faster way to generate HTML - a kind of
shorthand
Philosophy: Markdown syntax should be as easy
to read as possible (without further processing)
Many different flavours have emerged:
Markdown Extra, MultiMarkdown, Pandoc
Markdown, CommonMark, GitHub-flavored
Markdown (GFM)
: MIME type text/markdown
John Gruber - 2004
RFC 7763
WHO'S USING MARKDOWN?WHO'S USING MARKDOWN?
GitHub (GFM)
Atlassian Bitbucket
Reddit
Diaspora
Stack Exchange
OpenStreetMap
SourceForge
(the framework used to create this
presentation)
Reveal.js
SYNTAXSYNTAX
GITHUB-FLAVORED MARKDOWN: HEADINGSGITHUB-FLAVORED MARKDOWN: HEADINGS
Mark Meaning
# Title Heading Level 1
## Title Heading Level 2
### Title Heading Level 3
#### Title Heading Level 4
##### Title Heading Level 5
###### Title Heading Level 6
GITHUB-FLAVORED MARKDOWN: GENERALGITHUB-FLAVORED MARKDOWN: GENERAL
FORMATTINGFORMATTING
Mark Meaning
Text Paragraph text
*Text* or _Text_ Italics
**Text** or __Text__ Bold
~~Text~~ Strikethrough
> Quote Quoted text (indent)
``Code`` Inline code
```Code``` Code block (fenced)
GITHUB-FLAVORED MARKDOWN: LISTSGITHUB-FLAVORED MARKDOWN: LISTS
Mark Meaning
* Item 1
* Item 2
* Item 3
Unordered list
1. Item 1
2. Item 2
3. Item 3
Ordered list
GITHUB-FLAVORED MARKDOWN: MEDIA AND LINKSGITHUB-FLAVORED MARKDOWN: MEDIA AND LINKS
Mark Meaning
![Alternate text]
(path/image.jpg)
Image with alt
text
[Link text](URI) Link
LIMITATIONS?LIMITATIONS?
Simplistic tables
No underline (no direct mapping to HTML)
Final rendering relies on spacing/positioning, not
end tags - sensitive to indentation errors and
superfluous line breaks
If you can't do it in Markdown, you can (must) fall
back to HTML and CSS
Once you fall back to HTML, you are "stuck". You can't
nest Markdown inside the HTML.
EDITING MARKDOWNEDITING MARKDOWN
Any plain text editor...
...but an editor with a Markdown previewer is better
with
What you see is not always what you get!
Atom Markdown Preview
GitBook Editor
Demo: Interactive Markdown cheat sheet in
Observable
Markdown rendered by this presentation framework
( )...reveal.js
OVERVIEWOVERVIEW
is a new way of analyzing problems in CICS by
exposing the intrinsic value of the CICS internal trace.
Time to value is very quick for the following reasons:
CProf requires no changes to CICS itself. It requires
no exits, agents or resource definitions. CICS is
unaware of CProf activity, and is completely
unaffected by it.
CProf jobs operate at arm’s length to CICS. It is a
lightweight, low overhead solution.
CProf
INITIAL GITBOOK BUILDINITIAL GITBOOK BUILD
GITBOOK: WHAT IS IT?GITBOOK: WHAT IS IT?
1. JavaScript library that parses Markdown to produce
a web-based book (HTML/CSS/JS)
On but moved to
2. A for books created with
GitBook
Github private repository
hosting environment
GETTING STARTEDGETTING STARTED
1. Get .
2. Install .
3. Open a command prompt/shell (e.g. Powershell).
4. To set up an initial project type:
NPM
GitBook
gitbook init
GITBOOK: INITIAL PROJECT PARTSGITBOOK: INITIAL PROJECT PARTS
Part Purpose
README.md The first topic in your book
SUMMARY.md The table of contents of your book
QUICK TESTQUICK TEST
1. In a shell, type:
The book is built and placed in the _book directory.
2. Browse index.html in the _book directory, or
serve the files up as you like (gitbook serve).
gitbook build
BRINGING IN YOUR SOURCE MATERIALBRINGING IN YOUR SOURCE MATERIAL
1. Copy your MS Word-based README.md into the
project directory (overwriting the default
README.md).
2. Repeat the build process (gitbook build) and
then browse the index.html file.
INITIAL WEBSITE WITH GITBOOKINITIAL WEBSITE WITH GITBOOK
Problem: One big topic. We need to split it up.
RESTRUCTURE AND CONFIGURERESTRUCTURE AND CONFIGURE
RESTRUCTURING THE README.MDRESTRUCTURING THE README.MD
1. Split up README.md into a set of topic-based files
2. Add those topic files to SUMMARY.md
Option A: Do it by hand (fine for small jobs)
Option B: Script it (e.g. Python)
SUMMARY.MD FORSUMMARY.MD FOR WWW.CPROF.COMWWW.CPROF.COM
### What is CProf?
* [Feature overview](README.md)
* [Multiple trace capture modes](txc_multiple_trace_captur
* [Import CICS auxiliary trace data sets and dump files](t
* [Enterprise-wide data capture and control](txc_enterpris
* [Measurement across the application lifecycle](txc_measu
* [A complete understanding of your CICS application](txc_
* [Minimum operating requirements](txc_minimum_operating_requi
* [About this document](txc_about_this_document.md)
### Initial Setup
* [Getting started](txc_getting_started.md)
* [Before you begin](txc_before_you_begin.md)
CONFIGURING YOUR BOOKCONFIGURING YOUR BOOK
Add to the directory.
Book configuration in JSON format
Title, author, etc.
Book plugins
book.json
BOOK.JSON FORBOOK.JSON FOR WWW.CPROF.COMWWW.CPROF.COM
{
"title": "CProf: Transaction profiling for CICS",
"author": "Fundi Software, www.fundi.com",
"plugins": [
"collapsible-chapters",
"neo-navigator",
"heading-anchors",
"-lunr",
"-search",
"search-plus",
"ga",
"sitemap"
],
Current plugins deployed on :
Plugin Purpose
Collapsible sections in TOC
In-topic navigation
Anchor links for in-topic
sections
Improved search
Google Analytics
Generate sitemap
www.cprof.com
collapsible-
chapters
neo-navigator
heading-anchors
search-plus
ga
sitemap
Some of these have been edited slightly...
TO INSTALL GITBOOK PLUGINSTO INSTALL GITBOOK PLUGINS
1. From the shell, type gitbook install.
2. Rebuild the project (gitbook build).
THEMES AND TEMPLATINGTHEMES AND TEMPLATING
Content references (if you dare)
Conditionals
Raw HTML (no Markdown processing)
Create your own theme plug-in
Gitbook default theme
{% include "./media/cprof-configure.md" %}
{% if output.name == "website" %}
Some text that only relates to the website version of the do
{% endif %}
{% raw %}
insert your HTML here
{% endraw %}
TOPIC-BASED WEBSITE WITHTOPIC-BASED WEBSITE WITH
GITBOOKGITBOOK
Final Result: CProf User's Guide
ADDITIONAL EXAMPLESADDITIONAL EXAMPLES
GitBook User Documentation Source
Django Girls Tutorial
GitBook Explore
PDF WITH GITBOOKPDF WITH GITBOOK
GITBOOK: BUILDING A PDFGITBOOK: BUILDING A PDF
1. Install .
2. In a shell, type:
3. Open the PDF in Adobe Acrobat
Calibre
gitbook pdf ./ ./mybook.pdf
More here
LIMITATIONS?LIMITATIONS?
No page numbers in table of contents: Unresolved,
unassigned issues and
Essentially unprintable in this state
Use ? Other problems arise.
What about ?
523 (Nov 2014) 1223 (April
2016)
WKHTMLTOPDF
Prince XML
FURTHER READINGFURTHER READING
MARKDOWN AND DITAMARKDOWN AND DITA
Authoring with Markdown in Jekyll versus Authoring
with DITA in OxygenXML
Simplifying DITA authoring by using a Markdown to
HTML to DITA workflow
Why You Shouldn’t Use “Markdown” for
Documentation
WEBSITE GENERATION USING MARKDOWNWEBSITE GENERATION USING MARKDOWN
and its companion
- Facebook Open
Source
- Wiki system used by the
GitHub web hosting system
Doesn't use Markdown but worth mentioning:
Is GitBook still alive? Is this
project dead?
Getting started with Docusaurus
Gollum: A Git-bsed Wiki
What is Jekyll, exactly?
HTMLBook
HOSTINGHOSTING
GitBook: Can I host my content on GitHub?
ABOUT THIS PRESENTATIONABOUT THIS PRESENTATION
Developed in HTML, Markdown, and
Presentation source available on
View it live on
reveal.js
GitHub Gist
bl.ocks.org

More Related Content

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Moving from word to the web via git book and markdown adam j limbert

  • 1. MOVING FROM WORD TO THEMOVING FROM WORD TO THE WEB VIA GITBOOK ANDWEB VIA GITBOOK AND MARKDOWNMARKDOWN BY ADAM J LIMBERTBY ADAM J LIMBERT
  • 2. OBJECTIVESOBJECTIVES Convert product documentation developed in Microso Word to a website Minimize rework (do it quickly) Learn something new Use existing tools (do not reinvent the wheel) Use open source and free (or low cost) tools Didn't want to buy into a proprietary framework
  • 3. AN EXAMPLE TOOLCHAIN FOR CONVERSION...AN EXAMPLE TOOLCHAIN FOR CONVERSION... 1. Convert MS Word to Markdown using Pandoc 2. Edit and restructure resulting Markdown to suit GitBook Editing by hand Topic-chunking using Python Styling 3. Generate HTML and PDF 4. Consider the result, change tooling as needed
  • 4. TOPIC-BASED WEBSITE WITH GITBOOKTOPIC-BASED WEBSITE WITH GITBOOK Final Result: CProf User's Guide
  • 6. MICROSOFT WORD PRODUCT DOCUMENTATION...MICROSOFT WORD PRODUCT DOCUMENTATION...
  • 7. ...CONVERTED TO ADOBE PDF FOR DISTRIBUTION......CONVERTED TO ADOBE PDF FOR DISTRIBUTION...
  • 9. PANDOC: WHAT IS IT?PANDOC: WHAT IS IT? Open source document converter Free so ware, released under the GPL Copyright John MacFarlane Many formats supported
  • 10. CONVERTING FROM MS WORD TO GITHUB-FLAVOREDCONVERTING FROM MS WORD TO GITHUB-FLAVORED MARKDOWN (GFM)MARKDOWN (GFM) 1. Download and install . 2. Open a command prompt/shell (e.g. Powershell in Win 3. Execute the following command (replacing input.docx Microso Word document of your choice): Pandoc pandoc -f docx -t markdown_github --extract-media=./ -o README
  • 11. Parameter Function -f docx Input format is MS Word docx -t markdown_github Desired output format is Github-flavored Markdown --extract-media=./ Extract images from document and store in current directory -o README.md Output file name (containing the Markdown) pandoc -f docx -t markdown_github --extract-media=./ -o README.md input.do
  • 12. Click here for full Pandoc command syntax
  • 14. MARKDOWN GENERATED BY PANDOCMARKDOWN GENERATED BY PANDOC **CProf User’s Guide** The product is a COPYRIGHT (c) system with all rights reserved © Fundi Software Changes since last release: - Centralized monitoring and control of trace collection acr - New CProf trace control program TXCCICS1 and associated - The CProf trace viewer has moved to option **3 Trace** o - All ad hoc batch collection modes are now grouped into new
  • 15. MARKDOWN: WHAT IS IT?MARKDOWN: WHAT IS IT? Markdown is a popular format with developers for creating quick and easy documentation for so ware projects. Its utility is clear on sites such as GitHub where simple instructions and formatted code samples can be viewed directly in Markdown without additional styling, or as styled output within a web browser.
  • 16. HISTORYHISTORY A faster way to generate HTML - a kind of shorthand Philosophy: Markdown syntax should be as easy to read as possible (without further processing) Many different flavours have emerged: Markdown Extra, MultiMarkdown, Pandoc Markdown, CommonMark, GitHub-flavored Markdown (GFM) : MIME type text/markdown John Gruber - 2004 RFC 7763
  • 17. WHO'S USING MARKDOWN?WHO'S USING MARKDOWN? GitHub (GFM) Atlassian Bitbucket Reddit Diaspora Stack Exchange OpenStreetMap SourceForge (the framework used to create this presentation) Reveal.js
  • 19. GITHUB-FLAVORED MARKDOWN: HEADINGSGITHUB-FLAVORED MARKDOWN: HEADINGS Mark Meaning # Title Heading Level 1 ## Title Heading Level 2 ### Title Heading Level 3 #### Title Heading Level 4 ##### Title Heading Level 5 ###### Title Heading Level 6
  • 20. GITHUB-FLAVORED MARKDOWN: GENERALGITHUB-FLAVORED MARKDOWN: GENERAL FORMATTINGFORMATTING Mark Meaning Text Paragraph text *Text* or _Text_ Italics **Text** or __Text__ Bold ~~Text~~ Strikethrough > Quote Quoted text (indent) ``Code`` Inline code ```Code``` Code block (fenced)
  • 21. GITHUB-FLAVORED MARKDOWN: LISTSGITHUB-FLAVORED MARKDOWN: LISTS Mark Meaning * Item 1 * Item 2 * Item 3 Unordered list 1. Item 1 2. Item 2 3. Item 3 Ordered list
  • 22. GITHUB-FLAVORED MARKDOWN: MEDIA AND LINKSGITHUB-FLAVORED MARKDOWN: MEDIA AND LINKS Mark Meaning ![Alternate text] (path/image.jpg) Image with alt text [Link text](URI) Link
  • 23. LIMITATIONS?LIMITATIONS? Simplistic tables No underline (no direct mapping to HTML) Final rendering relies on spacing/positioning, not end tags - sensitive to indentation errors and superfluous line breaks If you can't do it in Markdown, you can (must) fall back to HTML and CSS Once you fall back to HTML, you are "stuck". You can't nest Markdown inside the HTML.
  • 24. EDITING MARKDOWNEDITING MARKDOWN Any plain text editor... ...but an editor with a Markdown previewer is better with What you see is not always what you get! Atom Markdown Preview GitBook Editor Demo: Interactive Markdown cheat sheet in Observable
  • 25. Markdown rendered by this presentation framework ( )...reveal.js
  • 26. OVERVIEWOVERVIEW is a new way of analyzing problems in CICS by exposing the intrinsic value of the CICS internal trace. Time to value is very quick for the following reasons: CProf requires no changes to CICS itself. It requires no exits, agents or resource definitions. CICS is unaware of CProf activity, and is completely unaffected by it. CProf jobs operate at arm’s length to CICS. It is a lightweight, low overhead solution. CProf
  • 28. GITBOOK: WHAT IS IT?GITBOOK: WHAT IS IT? 1. JavaScript library that parses Markdown to produce a web-based book (HTML/CSS/JS) On but moved to 2. A for books created with GitBook Github private repository hosting environment
  • 29. GETTING STARTEDGETTING STARTED 1. Get . 2. Install . 3. Open a command prompt/shell (e.g. Powershell). 4. To set up an initial project type: NPM GitBook gitbook init
  • 30. GITBOOK: INITIAL PROJECT PARTSGITBOOK: INITIAL PROJECT PARTS Part Purpose README.md The first topic in your book SUMMARY.md The table of contents of your book
  • 31. QUICK TESTQUICK TEST 1. In a shell, type: The book is built and placed in the _book directory. 2. Browse index.html in the _book directory, or serve the files up as you like (gitbook serve). gitbook build
  • 32. BRINGING IN YOUR SOURCE MATERIALBRINGING IN YOUR SOURCE MATERIAL 1. Copy your MS Word-based README.md into the project directory (overwriting the default README.md). 2. Repeat the build process (gitbook build) and then browse the index.html file.
  • 33. INITIAL WEBSITE WITH GITBOOKINITIAL WEBSITE WITH GITBOOK
  • 34. Problem: One big topic. We need to split it up.
  • 36. RESTRUCTURING THE README.MDRESTRUCTURING THE README.MD 1. Split up README.md into a set of topic-based files 2. Add those topic files to SUMMARY.md Option A: Do it by hand (fine for small jobs) Option B: Script it (e.g. Python)
  • 37. SUMMARY.MD FORSUMMARY.MD FOR WWW.CPROF.COMWWW.CPROF.COM ### What is CProf? * [Feature overview](README.md) * [Multiple trace capture modes](txc_multiple_trace_captur * [Import CICS auxiliary trace data sets and dump files](t * [Enterprise-wide data capture and control](txc_enterpris * [Measurement across the application lifecycle](txc_measu * [A complete understanding of your CICS application](txc_ * [Minimum operating requirements](txc_minimum_operating_requi * [About this document](txc_about_this_document.md) ### Initial Setup * [Getting started](txc_getting_started.md) * [Before you begin](txc_before_you_begin.md)
  • 38. CONFIGURING YOUR BOOKCONFIGURING YOUR BOOK Add to the directory. Book configuration in JSON format Title, author, etc. Book plugins book.json
  • 39. BOOK.JSON FORBOOK.JSON FOR WWW.CPROF.COMWWW.CPROF.COM { "title": "CProf: Transaction profiling for CICS", "author": "Fundi Software, www.fundi.com", "plugins": [ "collapsible-chapters", "neo-navigator", "heading-anchors", "-lunr", "-search", "search-plus", "ga", "sitemap" ],
  • 40. Current plugins deployed on : Plugin Purpose Collapsible sections in TOC In-topic navigation Anchor links for in-topic sections Improved search Google Analytics Generate sitemap www.cprof.com collapsible- chapters neo-navigator heading-anchors search-plus ga sitemap
  • 41. Some of these have been edited slightly...
  • 42. TO INSTALL GITBOOK PLUGINSTO INSTALL GITBOOK PLUGINS 1. From the shell, type gitbook install. 2. Rebuild the project (gitbook build).
  • 43. THEMES AND TEMPLATINGTHEMES AND TEMPLATING Content references (if you dare) Conditionals Raw HTML (no Markdown processing) Create your own theme plug-in Gitbook default theme {% include "./media/cprof-configure.md" %} {% if output.name == "website" %} Some text that only relates to the website version of the do {% endif %} {% raw %} insert your HTML here {% endraw %}
  • 44. TOPIC-BASED WEBSITE WITHTOPIC-BASED WEBSITE WITH GITBOOKGITBOOK
  • 45. Final Result: CProf User's Guide
  • 46. ADDITIONAL EXAMPLESADDITIONAL EXAMPLES GitBook User Documentation Source Django Girls Tutorial GitBook Explore
  • 47. PDF WITH GITBOOKPDF WITH GITBOOK
  • 48. GITBOOK: BUILDING A PDFGITBOOK: BUILDING A PDF 1. Install . 2. In a shell, type: 3. Open the PDF in Adobe Acrobat Calibre gitbook pdf ./ ./mybook.pdf More here
  • 49. LIMITATIONS?LIMITATIONS? No page numbers in table of contents: Unresolved, unassigned issues and Essentially unprintable in this state Use ? Other problems arise. What about ? 523 (Nov 2014) 1223 (April 2016) WKHTMLTOPDF Prince XML
  • 51. MARKDOWN AND DITAMARKDOWN AND DITA Authoring with Markdown in Jekyll versus Authoring with DITA in OxygenXML Simplifying DITA authoring by using a Markdown to HTML to DITA workflow Why You Shouldn’t Use “Markdown” for Documentation
  • 52. WEBSITE GENERATION USING MARKDOWNWEBSITE GENERATION USING MARKDOWN and its companion - Facebook Open Source - Wiki system used by the GitHub web hosting system Doesn't use Markdown but worth mentioning: Is GitBook still alive? Is this project dead? Getting started with Docusaurus Gollum: A Git-bsed Wiki What is Jekyll, exactly? HTMLBook
  • 53. HOSTINGHOSTING GitBook: Can I host my content on GitHub?
  • 54. ABOUT THIS PRESENTATIONABOUT THIS PRESENTATION
  • 55. Developed in HTML, Markdown, and Presentation source available on View it live on reveal.js GitHub Gist bl.ocks.org