-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from microsoft/pete-dev
Mostly documentation
- Loading branch information
Showing
197 changed files
with
27,088 additions
and
993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Deploy Jekyll site to Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "docs/**" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: docs | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.1' # Not needed with a .ruby-version file | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
cache-version: 0 # Increment this number if you need to re-download cached gems | ||
working-directory: '${{ github.workspace }}/docs' | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v3 | ||
- name: Build with Jekyll | ||
# Outputs to the './_site' directory by default | ||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | ||
env: | ||
JEKYLL_ENV: production | ||
- name: Upload artifact | ||
# Automatically uploads an artifact from the './_site' directory by default | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: "docs/_site/" | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Include> | ||
<?define SetupVersionName="Developer Preview 5" ?> | ||
<?define SetupVersionNumber="1.0.24037.0313" ?> | ||
<?define SetupVersionNumber="1.0.24038.0027" ?> | ||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem "jekyll", "~> 4.3.3" # installed by `gem jekyll` | ||
# gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2 | ||
|
||
gem "just-the-docs", "0.7.0" # pinned to the current release | ||
# gem "just-the-docs" # always download the latest release | ||
|
||
gem "jekyll-default-layout" | ||
gem "jekyll-remote-theme" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.8.6) | ||
public_suffix (>= 2.0.2, < 6.0) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.2.2) | ||
em-websocket (0.5.3) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0) | ||
eventmachine (1.2.7) | ||
ffi (1.16.3) | ||
ffi (1.16.3-x64-mingw-ucrt) | ||
forwardable-extended (2.6.0) | ||
google-protobuf (3.25.1-arm64-darwin) | ||
google-protobuf (3.25.1-x64-mingw-ucrt) | ||
google-protobuf (3.25.1-x86_64-linux) | ||
http_parser.rb (0.8.0) | ||
i18n (1.14.1) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (4.3.3) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (~> 1.0) | ||
jekyll-sass-converter (>= 2.0, < 4.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 2.3, >= 2.3.1) | ||
kramdown-parser-gfm (~> 1.0) | ||
liquid (~> 4.0) | ||
mercenary (>= 0.3.6, < 0.5) | ||
pathutil (~> 0.9) | ||
rouge (>= 3.0, < 5.0) | ||
safe_yaml (~> 1.0) | ||
terminal-table (>= 1.8, < 4.0) | ||
webrick (~> 1.7) | ||
jekyll-default-layout (0.1.5) | ||
jekyll (>= 3.0, < 5.0) | ||
jekyll-include-cache (0.2.1) | ||
jekyll (>= 3.7, < 5.0) | ||
jekyll-remote-theme (0.4.3) | ||
addressable (~> 2.0) | ||
jekyll (>= 3.5, < 5.0) | ||
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) | ||
rubyzip (>= 1.3.0, < 3.0) | ||
jekyll-sass-converter (3.0.0) | ||
sass-embedded (~> 1.54) | ||
jekyll-seo-tag (2.8.0) | ||
jekyll (>= 3.8, < 5.0) | ||
jekyll-watch (2.2.1) | ||
listen (~> 3.0) | ||
just-the-docs (0.7.0) | ||
jekyll (>= 3.8.5) | ||
jekyll-include-cache | ||
jekyll-seo-tag (>= 2.0) | ||
rake (>= 12.3.1) | ||
kramdown (2.4.0) | ||
rexml | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
liquid (4.0.4) | ||
listen (3.8.0) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
mercenary (0.4.0) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (5.0.4) | ||
rake (13.0.6) | ||
rb-fsevent (0.11.2) | ||
rb-inotify (0.10.1) | ||
ffi (~> 1.0) | ||
rexml (3.2.6) | ||
rouge (4.2.0) | ||
rubyzip (2.3.2) | ||
safe_yaml (1.0.5) | ||
sass-embedded (1.69.5-arm64-darwin) | ||
google-protobuf (~> 3.23) | ||
sass-embedded (1.69.5-x64-mingw-ucrt) | ||
google-protobuf (~> 3.23) | ||
sass-embedded (1.69.5-x86_64-linux-gnu) | ||
google-protobuf (~> 3.23) | ||
terminal-table (3.0.2) | ||
unicode-display_width (>= 1.1.1, < 3) | ||
unicode-display_width (2.5.0) | ||
webrick (1.8.1) | ||
|
||
PLATFORMS | ||
arm64-darwin-23 | ||
x64-mingw-ucrt | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
jekyll (~> 4.3.3) | ||
jekyll-default-layout | ||
jekyll-remote-theme | ||
just-the-docs (= 0.7.0) | ||
|
||
BUNDLED WITH | ||
2.3.26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,76 @@ | ||
#site settings | ||
|
||
title: Windows MIDI Services Documentation | ||
title: Windows MIDI Services | ||
description: User and developer documentation for the Windows MIDI Services project | ||
#show_downloads: true | ||
baseurl: "/docs" | ||
twitter_username: pete_brown | ||
github_username: psychlist1972 | ||
|
||
#theme | ||
remote_theme: pages-themes/[email protected] | ||
#remote_theme: pages-themes/[email protected] | ||
theme: just-the-docs | ||
|
||
|
||
exclude: | ||
# from https://github.com/jekyll/jekyll/blob/master/lib/site_template/_config.yml: | ||
- .sass-cache/ | ||
- .jekyll-cache/ | ||
- gemfiles/ | ||
- Gemfile | ||
- Gemfile.lock | ||
- node_modules/ | ||
- vendor/bundle/ | ||
- vendor/cache/ | ||
- vendor/gems/ | ||
- vendor/ruby/ | ||
|
||
|
||
# Enable or disable the site search | ||
# Supports true (default) or false | ||
search_enabled: true | ||
search: | ||
# Split pages into sections that can be searched individually | ||
# Supports 1 - 6, default: 2 | ||
heading_level: 2 | ||
# Maximum amount of previews per search result | ||
# Default: 3 | ||
previews: 2 | ||
# Maximum amount of words to display before a matched word in the preview | ||
# Default: 5 | ||
preview_words_before: 3 | ||
# Maximum amount of words to display after a matched word in the preview | ||
# Default: 10 | ||
preview_words_after: 3 | ||
# Set the search token separator | ||
# Default: /[\s\-/]+/ | ||
# Example: enable support for hyphenated search words | ||
tokenizer_separator: /[\s/]+/ | ||
# Display the relative url in search results | ||
# Supports true (default) or false | ||
rel_url: true | ||
# Enable or disable the search button that appears in the bottom right corner of every page | ||
# Supports true or false (default) | ||
button: false | ||
|
||
|
||
# For copy button on code | ||
enable_copy_code_button: true | ||
|
||
# Enable or disable heading anchors | ||
heading_anchors: true | ||
|
||
# Back to top link | ||
back_to_top: true | ||
back_to_top_text: "Back to top" | ||
|
||
|
||
#plugins | ||
|
||
plugins: | ||
- jekyll-remote-theme | ||
- jekyll-default-layout | ||
|
||
kramdown: | ||
syntax_highlighter_opts: | ||
block: | ||
line_numbers: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{%- comment -%} | ||
Include as: {%- include components/breadcrumbs.html -%} | ||
Depends on: page, site. | ||
Results in: HTML for the breadcrumbs component. | ||
Overwrites: | ||
node, pages_list, parent_page, grandparent_page. | ||
{%- endcomment -%} | ||
|
||
{%- if page.url != "/" and page.parent -%} | ||
|
||
{%- assign pages_list = site[page.collection] | default: site.html_pages -%} | ||
|
||
{%- assign parent_page = nil -%} | ||
{%- assign grandparent_page = nil -%} | ||
|
||
{%- for node in pages_list -%} | ||
|
||
{%- if node.has_children and page.grand_parent -%} | ||
|
||
{%- if node.title == page.parent and node.parent == page.grand_parent -%} | ||
{%- assign parent_page = node -%} | ||
{%- endif -%} | ||
{%- if node.title == page.grand_parent -%} | ||
{%- assign grandparent_page = node -%} | ||
{%- endif -%} | ||
{%- if parent_page and grandparent_page -%} | ||
{%- break -%} | ||
{%- endif -%} | ||
|
||
{%- elsif node.has_children and node.title == page.parent and node.parent == nil -%} | ||
|
||
{%- assign parent_page = node -%} | ||
{%- break -%} | ||
|
||
{%- endif -%} | ||
|
||
{%- endfor -%} | ||
|
||
<nav aria-label="Breadcrumb" class="breadcrumb-nav"> | ||
<ol class="breadcrumb-nav-list"> | ||
{% if page.parent -%} | ||
{%- if page.grand_parent %} | ||
<li class="breadcrumb-nav-list-item"><a href="{{ grandparent_page.url | relative_url }}">{{ page.grand_parent }}</a></li> | ||
{%- endif %} | ||
<li class="breadcrumb-nav-list-item"><a href="{{ parent_page.url | relative_url }}">{{ page.parent }}</a></li> | ||
{% endif -%} | ||
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li> | ||
</ol> | ||
</nav> | ||
|
||
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{%- comment -%} | ||
Include as: {%- include components/nav.html pages=pages -%} | ||
Depends on: include.pages. | ||
Results in: HTML for the navigation panel. | ||
Includes: | ||
sorted_pages.html | ||
Overwrites: | ||
nav_pages, first_level_pages, second_level_pages, third_level_pages, | ||
node, children_list, child, grand_children_list, grand_child. | ||
{%- endcomment -%} | ||
|
||
{%- assign nav_pages = include.pages | ||
| where_exp: "item", "item.title != nil" | ||
| where_exp: "item", "item.nav_exclude != true" -%} | ||
|
||
{%- include sorted_pages.html pages = nav_pages -%} | ||
|
||
{%- comment -%} | ||
It might be more efficient to sort the pages at each level separately. | ||
{%- endcomment -%} | ||
|
||
{%- assign first_level_pages = sorted_pages | ||
| where_exp: "item", "item.parent == nil" -%} | ||
{%- assign second_level_pages = sorted_pages | ||
| where_exp: "item", "item.parent != nil" | ||
| where_exp: "item", "item.grand_parent == nil" -%} | ||
{%- assign third_level_pages = sorted_pages | ||
| where_exp: "item", "item.grand_parent != nil" -%} | ||
|
||
<ul class="nav-list"> | ||
{%- for node in first_level_pages -%} | ||
<li class="nav-list-item"> | ||
{%- if node.has_children -%} | ||
<button class="nav-list-expander btn-reset" aria-label="toggle items in {{ node.title }} category" aria-pressed="false"> | ||
<svg viewBox="0 0 24 24" aria-hidden="true"><use xlink:href="#svg-arrow-right"></use></svg> | ||
</button> | ||
{%- endif -%} | ||
<a href="{{ node.url | relative_url }}" class="nav-list-link">{{ node.title }}</a> | ||
{%- if node.has_children -%} | ||
{%- assign children_list = second_level_pages | ||
| where: "parent", node.title -%} | ||
{%- if node.child_nav_order == 'desc' or node.child_nav_order == 'reversed' -%} | ||
{%- assign children_list = children_list | reverse -%} | ||
{%- endif -%} | ||
<ul class="nav-list"> | ||
{%- for child in children_list -%} | ||
<li class="nav-list-item"> | ||
{%- if child.has_children -%} | ||
<button class="nav-list-expander btn-reset" aria-label="toggle items in {{ child.title }} category" aria-pressed="false"> | ||
<svg viewBox="0 0 24 24" aria-hidden="true"><use xlink:href="#svg-arrow-right"></use></svg> | ||
</button> | ||
{%- endif -%} | ||
<a href="{{ child.url | relative_url }}" class="nav-list-link">{{ child.title }}</a> | ||
{%- if child.has_children -%} | ||
{%- assign grand_children_list = third_level_pages | ||
| where: "parent", child.title | ||
| where: "grand_parent", node.title -%} | ||
{%- if child.child_nav_order == 'desc' or child.child_nav_order == 'reversed' -%} | ||
{%- assign grand_children_list = grand_children_list | reverse -%} | ||
{%- endif -%} | ||
<ul class="nav-list"> | ||
{%- for grand_child in grand_children_list -%} | ||
<li class="nav-list-item"> | ||
<a href="{{ grand_child.url | relative_url }}" class="nav-list-link">{{ grand_child.title }}</a> | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
{%- endif -%} | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
{%- endif -%} | ||
</li> | ||
{%- endfor -%} | ||
</ul> |
Oops, something went wrong.