diff --git a/Gemfile b/Gemfile index a47fde7..bf4e6d9 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source "https://rubygems.org" +# gem "rails" gem 'github-pages' -gem 'jekyll' +gem 'jekyll' \ No newline at end of file diff --git a/_config.yml b/_config.yml index 2143474..ac7b003 100644 --- a/_config.yml +++ b/_config.yml @@ -49,18 +49,6 @@ kramdown: collections: tooltips: output: false - my_docs: - title: Jekyll Doc Theme - version: 5.0 - output: true - product1: - title: Product1 - version: 1.0 - output: true - product2: - title: Product2 - version: 1.0 - output: true # collection declared here. this renders the content in _tooltips and processes it, but doesn't output it as actual files in the output. defaults: @@ -82,36 +70,6 @@ defaults: comments: true search: true tooltip: true - - - scope: - path: "" - type: "my_docs" - values: - layout: "page" - comments: true - search: true - tooltip: true - collection: "my_docs" - - - scope: - path: "" - type: "product1" - values: - layout: "page" - comments: true - search: true - tooltip: true - collection: "product1" - - - scope: - path: "" - type: "product2" - values: - layout: "page" - comments: true - search: true - tooltip: true - collection: "product2" - scope: @@ -128,3 +86,4 @@ defaults: description: "Intended as a documentation theme based on Jekyll for technical writers documenting software and other technical products, this theme has all the elements you would need to handle multiple products with both multi-level sidebar navigation, tags, and other documentation features." # the description is used in the feed.xml file + diff --git a/_data/sidebars/home_sidebar.yml b/_data/sidebars/home_sidebar.yml new file mode 100644 index 0000000..e914ce4 --- /dev/null +++ b/_data/sidebars/home_sidebar.yml @@ -0,0 +1,27 @@ +# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. + +entries: +- title: Sidebar + levels: one + folders: + + - title: Products + output: web + folderitems: + - title: Home + url: / + output: web + type: homepage + - title: News + url: /news/ + output: web + - title: Theme instructions + url: /mydoc_introduction/ + output: web + - title: Product 1 + url: /p1_landing_page/ + output: web + - title: Product 2 + url: /p2_landing_page/ + output: web + diff --git a/_data/sidebars/mydoc_sidebar.yml b/_data/sidebars/mydoc_sidebar.yml new file mode 100644 index 0000000..2af1e89 --- /dev/null +++ b/_data/sidebars/mydoc_sidebar.yml @@ -0,0 +1,279 @@ +# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. + +entries: +- title: sidebar + product: Jekyll Doc Theme + version: 5.0 + folders: + + - title: + output: pdf + type: frontmatter + folderitems: + - title: + url: /titlepage/ + output: pdf + type: frontmatter + - title: + url: /tocpage/ + output: pdf + type: frontmatter + + - title: Overview + output: web, pdf + folderitems: + + - title: Get started + url: / + type: homepage + output: web, pdf + + - title: 5.0 Release notes + url: /mydoc_release_notes_50/ + output: web, pdf + + - title: Sample page + url: /samplepage/ + output: web, pdf + + - title: Introduction + url: /mydoc_introduction/ + output: web, pdf + + - title: Supported features + url: /mydoc_supported_features/ + output: web, pdf + + - title: About the theme author + url: /mydoc_about/ + output: web, pdf + + - title: Support + url: /mydoc_support/ + output: web, pdf + + - title: Installation + output: web, pdf + folderitems: + + - title: About Ruby, Gems, Bundler, etc. + url: /mydoc_about_ruby_gems_etc/ + output: web, pdf + + - title: Install Jekyll on Mac + url: /mydoc_install_jekyll_on_mac/ + output: web, pdf + + - title: Install Jekyll on Windows + url: /mydoc_install_jekyll_on_windows/ + output: web, pdf + + - title: Authoring + output: web, pdf + + folderitems: + - title: Pages + url: /mydoc_pages/ + output: web, pdf + + - title: Posts + url: /mydoc_posts/ + output: web, pdf + + - title: WebStorm Text Editor + url: /mydoc_webstorm_text_editor/ + output: web, pdf + + - title: Conditional logic + url: /mydoc_conditional_logic/ + output: web, pdf + + - title: Content reuse + url: /mydoc_content_reuse/ + output: web, pdf + + - title: Collections + url: /mydoc_collections/ + output: web, pdf + + - title: Navigation + output: web, pdf + + folderitems: + - title: Sidebar navigation + url: /mydoc_sidebar_navigation/ + output: web, pdf + + - title: YAML tutorial in the context of Jekyll + url: /mydoc_yaml_tutorial/ + output: web, pdf + + - title: Tags + url: /mydoc_tags/ + output: web, pdf + + - title: Series + url: /mydoc_series/ + output: web, pdf + + - title: Formatting + output: web, pdf + + folderitems: + - title: Tooltips + url: /mydoc_adding_tooltips/ + output: web, pdf + + - title: Alerts + url: /mydoc_alerts/ + output: web, pdf + + - title: Icons + url: /mydoc_icons/ + output: web, pdf + + - title: Images + url: /mydoc_images/ + output: web, pdf + + - title: Labels + url: /mydoc_labels/ + output: web, pdf + + - title: Links + url: /mydoc_hyperlinks/ + output: web, pdf + + - title: Navtabs + url: /mydoc_navtabs/ + output: web, pdf + + - title: Tables + url: /mydoc_tables/ + output: web, pdf + + - title: Syntax highlighting + url: /mydoc_syntax_highlighting/ + output: web, pdf + + - title: Handling reviews + output: web, pdf + + folderitems: + - title: Commenting on files + url: /mydoc_commenting_on_files/ + output: web, pdf + +# - title: Git collaboration +# url: /mydoc_git_collaboration/ +# output: web, pdf + + - title: Publishing + output: web, pdf + + folderitems: + - title: Build arguments + url: /mydoc_build_arguments/ + output: web, pdf + + - title: Themes + url: /mydoc_themes/ + output: web, pdf + + - title: Check page title consistency + url: /mydoc_title_checker/ + output: web, pdf + + - title: Generating PDFs + url: /mydoc_generating_pdfs/ + output: web, pdf + + - title: Help APIs and UI tooltips + url: /mydoc_help_api/ + output: web, pdf + + - title: Search configuration + url: /mydoc_search_configuration/ + output: web, pdf + + - title: iTerm profiles + url: /mydoc_iterm_profiles/ + output: web, pdf + + - title: Pushing builds to server + url: /mydoc_push_build_to_server/ + output: web, pdf + + - title: Getting around the password prompts in SCP + url: /mydoc_no_password_prompts_scp/ + output: web, pdf + + - title: Publishing on Github Pages + url: /mydoc_publishing_github_pages/ + output: web, pdf + + - title: Special layouts + output: web, pdf + + folderitems: + - title: Knowledge-base layout + url: /mydoc_kb_layout/ + output: web, pdf + + - title: Glossary layout + url: /mydoc_glossary/ + output: web, pdf + + - title: FAQ layout + url: /mydoc_faq_layout/ + output: web, pdf + + - title: Troubleshooting + output: web, pdf + + folderitems: + + - title: Troubleshooting + url: /mydoc_troubleshooting/ + output: web, pdf + + - title: Tag archives + output: web + folderitems: + + - title: Tag archives overview + url: /mydoc_tag_archives_overview/ + output: web + + subfolders: + - title: Tag archive pages + output: web + subfolderitems: + + - title: Formatting pages + url: /tag_formatting/ + output: web + + - title: Navigation pages + url: /tag_navigation/ + output: web + + - title: Content types pages + url: /tag_content_types/ + output: web + + - title: Publishing pages + url: /tag_publishing/ + output: web + + - title: Special layout pages + url: /tag_special_layouts/ + output: web + + - title: Collaboration pages + url: /tag_collaboration/ + output: web + + - title: Troubleshooting pages + url: /tag_troubleshooting/ + output: web \ No newline at end of file diff --git a/_data/sidebars/product1_sidebar.yml b/_data/sidebars/product1_sidebar.yml new file mode 100644 index 0000000..2ea2436 --- /dev/null +++ b/_data/sidebars/product1_sidebar.yml @@ -0,0 +1,60 @@ +# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. + + +entries: +- title: Sidebar + product: Product1 + version: 1.0 + folders: + + - title: + output: pdf + type: frontmatter + folderitems: + - title: + url: /titlepage/ + output: pdf + type: frontmatter + - title: + url: /tocpage/ + output: pdf + type: frontmatter + + - title: Getting Started + output: web, pdf + folderitems: + - title: Product 1 home + url: /p1_landing_page/ + output: web + + - title: Sample 1 + url: /p1_sample1/ + output: web, pdf + + - title: Sample 2 + url: /p1_sample2/ + output: web, pdf + + - title: Sample 3 + url: /p1_sample3/ + output: web, pdf + + - title: Another heading + output: web, pdf + + folderitems: + - title: Sample 4 + url: /p1_sample4/ + output: web, pdf + + - title: Sample 5 + url: /p1_sample5/ + output: web, pdf + + - title: Sample 6 + url: /p1_sample6/ + output: web, pdf + + - title: Sample 7 + url: /p1_sample7/ + output: web, pdf \ No newline at end of file diff --git a/_data/sidebars/product2_sidebar.yml b/_data/sidebars/product2_sidebar.yml new file mode 100644 index 0000000..a30959e --- /dev/null +++ b/_data/sidebars/product2_sidebar.yml @@ -0,0 +1,93 @@ +# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. + +entries: +- title: Product2 + product: Product2 + version: 1.0 + folders: + + - title: + output: pdf + type: frontmatter + + folderitems: + - title: + url: /titlepage/ + output: pdf + type: frontmatter + - title: + url: /tocpage/ + output: pdf + type: frontmatter + + - title: Introduction + output: web, pdf + folderitems: + + - title: Overview + url: /p2_landing_page/ + output: web + + - title: Simple Workflow + output: web, pdf + folderitems: + + - title: Sample 1 + url: /p2_sample1/ + output: web, pdf + + - title: Sample 2 + url: /p2_sample2/ + output: web, pdf + + - title: Sample 3 + url: /p2_sample3/ + output: web, pdf + + - title: Sample 4 + url: /p2_sample4/ + output: web, pdf + + - title: Sample 5 + url: /p2_sample5/ + output: web, pdf + + - title: Complex Workflow + output: web, pdf + folderitems: + + - title: Sample 6 + url: /p2_sample6/ + output: web, pdf + + - title: Sample 7 + url: /p2_sample7/ + output: web, pdf + + - title: Sample 8 + url: /p2_sample8/ + output: web, pdf + + - title: Sample 9 + url: /p2_sample9/ + output: web, pdf + + - title: Sample 10 + url: /p2_sample10/ + output: web, pdf + + - title: Sample 11 + url: /p2_sample11/ + output: web, pdf + + - title: Sample 12 + url: /p2_sample12/ + output: web, pdf + + - title: Sample 13 + url: /p2_sample13/ + output: web, pdf + + - title: Sample 14 + url: /p2_sample14/ + output: web, pdf diff --git a/_data/sidebars/tags_sidebar.yml b/_data/sidebars/tags_sidebar.yml new file mode 100644 index 0000000..bc37ae9 --- /dev/null +++ b/_data/sidebars/tags_sidebar.yml @@ -0,0 +1,54 @@ + +entries: +- title: Tags Sidebar + product: Tags + version: all products + levels: one + output: web + folders: + + - title: News + output: web + folderitems: + - title: News + url: /news/ + output: web + - title: News archive + url: /news_archive/ + output: web + - title: Tags + output: web + folderitems: + - title: Collaboration + url: /tag_collaboration/ + output: web + - title: Content Types + url: /tag_content_types/ + output: web + - title: Formatting + url: /tag_formatting/ + output: web + - title: Getting started + url: /tag_getting_started/ + output: web + - title: Mobile + url: /tag_mobile/ + output: web + - title: Navigation + url: /tag_navigation/ + output: web + - title: News + url: /tag_news/ + output: web + - title: Publishing + url: /tag_publishing/ + output: web + - title: Single sourcing + url: /tag_single_sourcing/ + output: web + - title: Special layouts + url: /tag_special_layouts/ + output: web + - title: Troubleshooting + url: /tag_troubleshooting/ + output: web \ No newline at end of file diff --git a/_data/sub_navigation.yml b/_data/sub_navigation.yml deleted file mode 100644 index 0994a5e..0000000 --- a/_data/sub_navigation.yml +++ /dev/null @@ -1,18 +0,0 @@ -my_docs: - - Overview - - Installation - - Authoring - - Navigation - - Formatting - - Handling reviews - - Publishing - - Special layouts - - Troubleshooting - - Tag archives -product1: - - Getting Started - - Another heading -product2: - - Introduction - - Simple Workflow - - Complex Workflow diff --git a/_data/topnav.yml b/_data/topnav.yml index d37806f..f66735d 100644 --- a/_data/topnav.yml +++ b/_data/topnav.yml @@ -1,24 +1,35 @@ ## Topnav single links ## if you want to list an external url, use external_url instead of url. the theme will apply a different link base. - - title: News - url: /news/ - - title: Jekyll Resources - sub_items: - - title: Github Repo - external_url: https://github.com/tomjohnson1492/documentation-theme-jekyll - - title: Jekyll Talk - external_url: https://talk.jekyllrb.com - - title: Jekyll documentation - external_url: http://jekyllrb.com/docs/home/ - - title: Jekyll on Stack Overflow - external_url: http://stackoverflow.com/questions/tagged/jekyll - - title: Jekyll on my blog - external_url: http://idratherbewriting.com/category-jekyll/ - - title: Products - sub_items: - - title: Jekyll Documentation Theme - url: /mydoc_introduction/ - - title: Product 1 - url: /p1_landing_page/ - - title: Product 2 - url: /p2_landing_page/ +topnav: +- title: Topnav + items: + - title: News + url: /news/ + +#Topnav dropdowns +topnav_dropdowns: +- title: Topnav dropdowns + folders: + - title: Jekyll Resources + folderitems: + - title: Github Repo + external_url: https://github.com/tomjohnson1492/documentation-theme-jekyll + - title: Jekyll Talk + external_url: https://talk.jekyllrb.com + - title: Jekyll documentation + external_url: http://jekyllrb.com/docs/home/ + - title: Jekyll on Stack Overflow + external_url: http://stackoverflow.com/questions/tagged/jekyll + - title: Jekyll on my blog + external_url: http://idratherbewriting.com/category-jekyll/ + - title: Products + folderitems: + - title: Jekyll Documentation Theme + url: /mydoc_introduction/ + - title: Product 1 + url: /p1_landing_page/ + - title: Product 2 + url: /p2_landing_page/ + + + diff --git a/_includes/callout.html b/_includes/callout.html index af41c1b..d492b18 100644 --- a/_includes/callout.html +++ b/_includes/callout.html @@ -1 +1 @@ -