From bdb24af45ad89a4856adcabb3c4aecd4d159466f Mon Sep 17 00:00:00 2001 From: Daniel Kuschny Date: Wed, 31 Jul 2019 18:59:37 +0200 Subject: [PATCH 01/27] Added new structure for reference documentation. Updated Wyam --- Documentation/config.wyam.packages.xml | 177 +++++++++------- Documentation/generate.bat | 2 +- Documentation/generatelocal.bat | 2 +- .../Shared/Sidebar/_ChildPagesMenu.cshtml | 59 ++++++ .../Shared/Sitebar/_ChildPagesMenu.cshtml | 57 ------ Documentation/input/_Bottom.cshtml | 39 ++++ Documentation/input/_Head.cshtml | 3 + Documentation/input/_Master.cshtml | 192 ------------------ Documentation/input/_Navbar.cshtml | 14 -- Documentation/input/alphatex/index.cshtml | 1 + Documentation/input/assets/css/override.css | 104 +++------- Documentation/input/assets/index.cshtml | 2 + Documentation/input/docs/command-line.md | 3 - Documentation/input/docs/usage.md | 3 - .../input/examples/api/settings.cshtml | 6 - .../input/examples/general/html5.cshtml | 4 +- .../input/examples/general/tracks.cshtml | 4 +- Documentation/input/examples/index.cshtml | 1 + .../input/examples/layouts/horizontal.cshtml | 4 +- .../input/examples/layouts/page.cshtml | 4 +- .../render-customization/hideinfo.cshtml | 4 +- .../render-customization/hidenames.cshtml | 4 +- .../render-customization/hidetuning.cshtml | 4 +- .../render-customization/restrictbars.cshtml | 4 +- .../render-customization/scale.cshtml | 4 +- .../examples/render-customization/size.cshtml | 4 +- .../render-customization/stretchforce.cshtml | 4 +- .../stave-configurations/score.cshtml | 4 +- .../stave-configurations/scoretab.cshtml | 4 +- .../examples/stave-configurations/tab.cshtml | 4 +- Documentation/input/features/index.cshtml | 1 + .../input/reference/api/autosize.cshtml | 8 + .../input/reference/api/canvaselement.cshtml | 8 + .../reference/api/changetrackmute.cshtml | 8 + .../reference/api/changetracksolo.cshtml | 8 + .../reference/api/changetrackvolume.cshtml | 8 + .../input/reference/api/container.cshtml | 8 + .../input/reference/api/destroy.cshtml | 8 + .../input/reference/api/index.cshtml | 57 ++++++ Documentation/input/reference/api/load.cshtml | 8 + .../input/reference/api/loadsoundfont.cshtml | 8 + .../input/reference/api/pause.cshtml | 8 + Documentation/input/reference/api/play.cshtml | 8 + .../input/reference/api/player.cshtml | 8 + .../input/reference/api/playpause.cshtml | 8 + .../input/reference/api/print.cshtml | 8 + .../input/reference/api/render.cshtml | 8 + .../input/reference/api/renderer.cshtml | 8 + .../input/reference/api/rendertracks.cshtml | 8 + .../input/reference/api/score.cshtml | 8 + .../input/reference/api/settings.cshtml | 8 + .../input/reference/api/settracks.cshtml | 8 + Documentation/input/reference/api/stop.cshtml | 8 + Documentation/input/reference/api/tex.cshtml | 8 + .../input/reference/api/trackindexes.cshtml | 8 + .../input/reference/api/tracks.cshtml | 8 + .../input/reference/api/uifacade.cshtml | 8 + .../input/reference/api/updatelayout.cshtml | 8 + .../input/reference/api/updatesettings.cshtml | 8 + .../input/reference/events/error.cshtml | 8 + .../input/reference/events/index.cshtml | 62 ++++++ .../input/reference/events/loaded.cshtml | 8 + .../events/postrenderfinished.cshtml | 8 + .../reference/events/renderfinished.cshtml | 8 + .../input/reference/events/resize.cshtml | 8 + Documentation/input/reference/index.cshtml | 24 +++ .../input/reference/jquery/alphatab.cshtml | 7 + .../input/reference/jquery/api.cshtml | 7 + .../input/reference/jquery/autoscroll.cshtml | 7 + .../input/reference/jquery/destroy.cshtml | 7 + .../input/reference/jquery/index.cshtml | 46 +++++ .../input/reference/jquery/layout.cshtml | 7 + .../input/reference/jquery/load.cshtml | 7 + .../reference/jquery/loadsoundfont.cshtml | 7 + .../input/reference/jquery/loop.cshtml | 7 + .../reference/jquery/mastervolume.cshtml | 7 + .../reference/jquery/metronomevolume.cshtml | 7 + .../input/reference/jquery/mutetrack.cshtml | 7 + .../input/reference/jquery/pause.cshtml | 7 + .../input/reference/jquery/play.cshtml | 7 + .../reference/jquery/playbackrange.cshtml | 7 + .../reference/jquery/playbackspeed.cshtml | 7 + .../input/reference/jquery/player.cshtml | 7 + .../input/reference/jquery/playpause.cshtml | 7 + .../input/reference/jquery/print.cshtml | 7 + .../input/reference/jquery/renderer.cshtml | 7 + .../input/reference/jquery/score.cshtml | 7 + .../input/reference/jquery/settings.cshtml | 7 + .../input/reference/jquery/solotrack.cshtml | 7 + .../input/reference/jquery/stop.cshtml | 7 + .../input/reference/jquery/tex.cshtml | 7 + .../reference/jquery/tickposition.cshtml | 7 + .../input/reference/jquery/tracks.cshtml | 7 + .../input/reference/jquery/trackvolume.cshtml | 7 + .../reference/property/barnumbercolor.cshtml | 9 + .../reference/property/barnumberfont.cshtml | 9 + .../property/barseparatorcolor.cshtml | 9 + .../reference/property/beatcursorwidth.cshtml | 9 + .../reference/property/copyrightfont.cshtml | 9 + .../property/disablelazyloading.cshtml | 9 + .../reference/property/displaymode.cshtml | 134 ++++++++++++ .../displaytranspositionpitches.cshtml | 9 + .../reference/property/effectfont.cshtml | 9 + .../reference/property/enablecursor.cshtml | 9 + .../reference/property/enableplayer.cshtml | 9 + .../input/reference/property/engine.cshtml | 9 + .../extendbendarrowsontiednotes.cshtml | 9 + .../extendlineeffectstobeatend.cshtml | 9 + .../reference/property/fingeringfont.cshtml | 9 + .../reference/property/fingeringmode.cshtml | 9 + .../reference/property/fontdirectory.cshtml | 9 + .../property/forcepianofingering.cshtml | 9 + .../property/fretboardnumberfont.cshtml | 9 + .../input/reference/property/gracefont.cshtml | 9 + .../importermusicxmlmergepartgroups.cshtml | 9 + .../property/importersettings.cshtml | 9 + .../property/importersettingsencoding.cshtml | 9 + .../property/includenotebounds.cshtml | 9 + .../input/reference/property/index.cshtml | 62 ++++++ .../property/layoutadditionalsettings.cshtml | 9 + .../layoutadditionalsettingsbarsperrow.cshtml | 9 + .../layoutadditionalsettingscount.cshtml | 9 + ...outadditionalsettingshdietracknames.cshtml | 9 + .../layoutadditionalsettingshideinfo.cshtml | 9 + .../layoutadditionalsettingshidetuning.cshtml | 9 + .../layoutadditionalsettingsstart.cshtml | 9 + .../reference/property/layoutmode.cshtml | 9 + .../input/reference/property/loglevel.cshtml | 9 + .../reference/property/mainglyphcolor.cshtml | 9 + .../reference/property/markerfont.cshtml | 9 + .../property/noteslightlength.cshtml | 9 + .../input/reference/property/scale.cshtml | 9 + .../reference/property/scoreinfocolor.cshtml | 9 + .../reference/property/scriptfile.cshtml | 9 + .../reference/property/scrollelement.cshtml | 9 + .../reference/property/scrollmode.cshtml | 9 + .../reference/property/scrolloffsetx.cshtml | 9 + .../reference/property/scrolloffsety.cshtml | 9 + .../reference/property/scrollspeed.cshtml | 9 + .../property/secondaryglyphcolor.cshtml | 9 + .../showparenthesisfortiedbends.cshtml | 9 + .../property/showtabnoteontiedbend.cshtml | 9 + .../property/showzeroondivewhammy.cshtml | 9 + .../reference/property/slurheight.cshtml | 9 + .../property/smallgracetabnotes.cshtml | 9 + .../property/songbookbendduration.cshtml | 9 + .../property/songbookdipduration.cshtml | 9 + .../reference/property/soundfontfile.cshtml | 9 + .../reference/property/stafflinecolor.cshtml | 9 + .../property/stavesadditionalsettings.cshtml | 9 + .../stavesadditionalsettingsrhythm.cshtml | 9 + ...stavesadditionalsettingsrhythmbeams.cshtml | 9 + .../input/reference/property/stavesid.cshtml | 9 + .../reference/property/stretchforce.cshtml | 9 + .../reference/property/subtitlefont.cshtml | 9 + .../reference/property/tablaturefont.cshtml | 9 + .../input/reference/property/titlefont.cshtml | 9 + .../property/transpositionpitches.cshtml | 9 + .../reference/property/useworkers.cshtml | 9 + .../vibratobeatslightamplitude.cshtml | 9 + .../property/vibratobeatslightlength.cshtml | 9 + .../property/vibratobeatwideamplitude.cshtml | 9 + .../property/vibratobeatwidelength.cshtml | 9 + .../vibratonoteslightamplitude.cshtml | 9 + .../property/vibratonotewideamplitude.cshtml | 9 + .../property/vibratonotewidelength.cshtml | 9 + .../input/reference/property/width.cshtml | 9 + .../input/reference/property/wordsfont.cshtml | 9 + Source/AlphaTab.CSharp/AlphaTab.CSharp.csproj | 2 +- .../Platform/JavaScript/JQueryAlphaTab.cs | 39 ++-- Source/AlphaTab.JavaScript/Settings.cs | 25 +-- Source/AlphaTab/AlphaTabApi.cs | 59 +++--- Source/AlphaTab/StaveSettings.cs | 8 +- 173 files changed, 1822 insertions(+), 511 deletions(-) create mode 100644 Documentation/input/Shared/Sidebar/_ChildPagesMenu.cshtml delete mode 100644 Documentation/input/Shared/Sitebar/_ChildPagesMenu.cshtml create mode 100644 Documentation/input/_Bottom.cshtml create mode 100644 Documentation/input/_Head.cshtml delete mode 100644 Documentation/input/_Master.cshtml delete mode 100644 Documentation/input/_Navbar.cshtml create mode 100644 Documentation/input/assets/index.cshtml delete mode 100644 Documentation/input/docs/command-line.md delete mode 100644 Documentation/input/docs/usage.md delete mode 100644 Documentation/input/examples/api/settings.cshtml create mode 100644 Documentation/input/reference/api/autosize.cshtml create mode 100644 Documentation/input/reference/api/canvaselement.cshtml create mode 100644 Documentation/input/reference/api/changetrackmute.cshtml create mode 100644 Documentation/input/reference/api/changetracksolo.cshtml create mode 100644 Documentation/input/reference/api/changetrackvolume.cshtml create mode 100644 Documentation/input/reference/api/container.cshtml create mode 100644 Documentation/input/reference/api/destroy.cshtml create mode 100644 Documentation/input/reference/api/index.cshtml create mode 100644 Documentation/input/reference/api/load.cshtml create mode 100644 Documentation/input/reference/api/loadsoundfont.cshtml create mode 100644 Documentation/input/reference/api/pause.cshtml create mode 100644 Documentation/input/reference/api/play.cshtml create mode 100644 Documentation/input/reference/api/player.cshtml create mode 100644 Documentation/input/reference/api/playpause.cshtml create mode 100644 Documentation/input/reference/api/print.cshtml create mode 100644 Documentation/input/reference/api/render.cshtml create mode 100644 Documentation/input/reference/api/renderer.cshtml create mode 100644 Documentation/input/reference/api/rendertracks.cshtml create mode 100644 Documentation/input/reference/api/score.cshtml create mode 100644 Documentation/input/reference/api/settings.cshtml create mode 100644 Documentation/input/reference/api/settracks.cshtml create mode 100644 Documentation/input/reference/api/stop.cshtml create mode 100644 Documentation/input/reference/api/tex.cshtml create mode 100644 Documentation/input/reference/api/trackindexes.cshtml create mode 100644 Documentation/input/reference/api/tracks.cshtml create mode 100644 Documentation/input/reference/api/uifacade.cshtml create mode 100644 Documentation/input/reference/api/updatelayout.cshtml create mode 100644 Documentation/input/reference/api/updatesettings.cshtml create mode 100644 Documentation/input/reference/events/error.cshtml create mode 100644 Documentation/input/reference/events/index.cshtml create mode 100644 Documentation/input/reference/events/loaded.cshtml create mode 100644 Documentation/input/reference/events/postrenderfinished.cshtml create mode 100644 Documentation/input/reference/events/renderfinished.cshtml create mode 100644 Documentation/input/reference/events/resize.cshtml create mode 100644 Documentation/input/reference/index.cshtml create mode 100644 Documentation/input/reference/jquery/alphatab.cshtml create mode 100644 Documentation/input/reference/jquery/api.cshtml create mode 100644 Documentation/input/reference/jquery/autoscroll.cshtml create mode 100644 Documentation/input/reference/jquery/destroy.cshtml create mode 100644 Documentation/input/reference/jquery/index.cshtml create mode 100644 Documentation/input/reference/jquery/layout.cshtml create mode 100644 Documentation/input/reference/jquery/load.cshtml create mode 100644 Documentation/input/reference/jquery/loadsoundfont.cshtml create mode 100644 Documentation/input/reference/jquery/loop.cshtml create mode 100644 Documentation/input/reference/jquery/mastervolume.cshtml create mode 100644 Documentation/input/reference/jquery/metronomevolume.cshtml create mode 100644 Documentation/input/reference/jquery/mutetrack.cshtml create mode 100644 Documentation/input/reference/jquery/pause.cshtml create mode 100644 Documentation/input/reference/jquery/play.cshtml create mode 100644 Documentation/input/reference/jquery/playbackrange.cshtml create mode 100644 Documentation/input/reference/jquery/playbackspeed.cshtml create mode 100644 Documentation/input/reference/jquery/player.cshtml create mode 100644 Documentation/input/reference/jquery/playpause.cshtml create mode 100644 Documentation/input/reference/jquery/print.cshtml create mode 100644 Documentation/input/reference/jquery/renderer.cshtml create mode 100644 Documentation/input/reference/jquery/score.cshtml create mode 100644 Documentation/input/reference/jquery/settings.cshtml create mode 100644 Documentation/input/reference/jquery/solotrack.cshtml create mode 100644 Documentation/input/reference/jquery/stop.cshtml create mode 100644 Documentation/input/reference/jquery/tex.cshtml create mode 100644 Documentation/input/reference/jquery/tickposition.cshtml create mode 100644 Documentation/input/reference/jquery/tracks.cshtml create mode 100644 Documentation/input/reference/jquery/trackvolume.cshtml create mode 100644 Documentation/input/reference/property/barnumbercolor.cshtml create mode 100644 Documentation/input/reference/property/barnumberfont.cshtml create mode 100644 Documentation/input/reference/property/barseparatorcolor.cshtml create mode 100644 Documentation/input/reference/property/beatcursorwidth.cshtml create mode 100644 Documentation/input/reference/property/copyrightfont.cshtml create mode 100644 Documentation/input/reference/property/disablelazyloading.cshtml create mode 100644 Documentation/input/reference/property/displaymode.cshtml create mode 100644 Documentation/input/reference/property/displaytranspositionpitches.cshtml create mode 100644 Documentation/input/reference/property/effectfont.cshtml create mode 100644 Documentation/input/reference/property/enablecursor.cshtml create mode 100644 Documentation/input/reference/property/enableplayer.cshtml create mode 100644 Documentation/input/reference/property/engine.cshtml create mode 100644 Documentation/input/reference/property/extendbendarrowsontiednotes.cshtml create mode 100644 Documentation/input/reference/property/extendlineeffectstobeatend.cshtml create mode 100644 Documentation/input/reference/property/fingeringfont.cshtml create mode 100644 Documentation/input/reference/property/fingeringmode.cshtml create mode 100644 Documentation/input/reference/property/fontdirectory.cshtml create mode 100644 Documentation/input/reference/property/forcepianofingering.cshtml create mode 100644 Documentation/input/reference/property/fretboardnumberfont.cshtml create mode 100644 Documentation/input/reference/property/gracefont.cshtml create mode 100644 Documentation/input/reference/property/importermusicxmlmergepartgroups.cshtml create mode 100644 Documentation/input/reference/property/importersettings.cshtml create mode 100644 Documentation/input/reference/property/importersettingsencoding.cshtml create mode 100644 Documentation/input/reference/property/includenotebounds.cshtml create mode 100644 Documentation/input/reference/property/index.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettings.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettingsbarsperrow.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettingscount.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettingshdietracknames.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettingshideinfo.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettingshidetuning.cshtml create mode 100644 Documentation/input/reference/property/layoutadditionalsettingsstart.cshtml create mode 100644 Documentation/input/reference/property/layoutmode.cshtml create mode 100644 Documentation/input/reference/property/loglevel.cshtml create mode 100644 Documentation/input/reference/property/mainglyphcolor.cshtml create mode 100644 Documentation/input/reference/property/markerfont.cshtml create mode 100644 Documentation/input/reference/property/noteslightlength.cshtml create mode 100644 Documentation/input/reference/property/scale.cshtml create mode 100644 Documentation/input/reference/property/scoreinfocolor.cshtml create mode 100644 Documentation/input/reference/property/scriptfile.cshtml create mode 100644 Documentation/input/reference/property/scrollelement.cshtml create mode 100644 Documentation/input/reference/property/scrollmode.cshtml create mode 100644 Documentation/input/reference/property/scrolloffsetx.cshtml create mode 100644 Documentation/input/reference/property/scrolloffsety.cshtml create mode 100644 Documentation/input/reference/property/scrollspeed.cshtml create mode 100644 Documentation/input/reference/property/secondaryglyphcolor.cshtml create mode 100644 Documentation/input/reference/property/showparenthesisfortiedbends.cshtml create mode 100644 Documentation/input/reference/property/showtabnoteontiedbend.cshtml create mode 100644 Documentation/input/reference/property/showzeroondivewhammy.cshtml create mode 100644 Documentation/input/reference/property/slurheight.cshtml create mode 100644 Documentation/input/reference/property/smallgracetabnotes.cshtml create mode 100644 Documentation/input/reference/property/songbookbendduration.cshtml create mode 100644 Documentation/input/reference/property/songbookdipduration.cshtml create mode 100644 Documentation/input/reference/property/soundfontfile.cshtml create mode 100644 Documentation/input/reference/property/stafflinecolor.cshtml create mode 100644 Documentation/input/reference/property/stavesadditionalsettings.cshtml create mode 100644 Documentation/input/reference/property/stavesadditionalsettingsrhythm.cshtml create mode 100644 Documentation/input/reference/property/stavesadditionalsettingsrhythmbeams.cshtml create mode 100644 Documentation/input/reference/property/stavesid.cshtml create mode 100644 Documentation/input/reference/property/stretchforce.cshtml create mode 100644 Documentation/input/reference/property/subtitlefont.cshtml create mode 100644 Documentation/input/reference/property/tablaturefont.cshtml create mode 100644 Documentation/input/reference/property/titlefont.cshtml create mode 100644 Documentation/input/reference/property/transpositionpitches.cshtml create mode 100644 Documentation/input/reference/property/useworkers.cshtml create mode 100644 Documentation/input/reference/property/vibratobeatslightamplitude.cshtml create mode 100644 Documentation/input/reference/property/vibratobeatslightlength.cshtml create mode 100644 Documentation/input/reference/property/vibratobeatwideamplitude.cshtml create mode 100644 Documentation/input/reference/property/vibratobeatwidelength.cshtml create mode 100644 Documentation/input/reference/property/vibratonoteslightamplitude.cshtml create mode 100644 Documentation/input/reference/property/vibratonotewideamplitude.cshtml create mode 100644 Documentation/input/reference/property/vibratonotewidelength.cshtml create mode 100644 Documentation/input/reference/property/width.cshtml create mode 100644 Documentation/input/reference/property/wordsfont.cshtml diff --git a/Documentation/config.wyam.packages.xml b/Documentation/config.wyam.packages.xml index 796268ccd..5486be897 100644 --- a/Documentation/config.wyam.packages.xml +++ b/Documentation/config.wyam.packages.xml @@ -1,75 +1,63 @@  - - - + + - - - - - - + + - + + + + + + + + + + + + + + + + + + - - - - - + - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - @@ -90,24 +78,18 @@ - - - - - - - - - - - + + + + + - + @@ -128,20 +110,67 @@ + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + @@ -150,6 +179,8 @@ + + @@ -164,17 +195,17 @@ - - - - - - - - + + + + + + + + - - + + - + \ No newline at end of file diff --git a/Documentation/generate.bat b/Documentation/generate.bat index ca6d4e895..69e8b0bda 100644 --- a/Documentation/generate.bat +++ b/Documentation/generate.bat @@ -2,7 +2,7 @@ pushd %~dp0 -SET WYAM=%USERPROFILE%\.nuget\packages\wyam\2.1.1\tools\netcoreapp2.1\Wyam.dll +SET WYAM=%USERPROFILE%\.nuget\packages\wyam\2.2.5\tools\netcoreapp2.1\Wyam.dll SET GitBranch=%APPVEYOR_REPO_BRANCH% git rev-parse HEAD > head.txt set /p GitRevision= head.txt set /p GitRevision= + +@functions +{ + IDocument[] FilterChildren(IEnumerable children) + { + return children + .Where(x => x.Bool(DocsKeys.ShowInSidebar, true)) + .OrderBy(x => x.Get(DocsKeys.Order, 1000)) + .ThenBy(x => x.WithoutSettings.String(Keys.Title)) + .ToArray(); + } +} + +@{ + // Group by category + IList> categoryGroups = Model + .GroupBy(x => x.String(DocsKeys.Category)) + .OrderBy(x => x.Key) + .ToList(); + foreach(IGrouping categoryGroup in categoryGroups) + { + IDocument[] children = FilterChildren(categoryGroup); + + if(children.Length > 0) + { + if(!string.IsNullOrWhiteSpace(categoryGroup.Key)) + { +
  • @categoryGroup.Key
  • + } + + // Iterate documents in this category + foreach(IDocument child in children) + { + object[] currentTreePath = Document.Get(Keys.TreePath); + object[] childTreePath = child.Get(Keys.TreePath); + string childTitle = child.WithoutSettings.String(Keys.Title, childTreePath.Last().ToString()); + string parentActive = currentTreePath.Take(childTreePath.Length).SequenceEqual(childTreePath) ? "active" : null; + string childSelected = parentActive != null && currentTreePath.Length == childTreePath.Length ? "selected" : null; + IDocument[] subChildren = FilterChildren(child.DocumentList(Keys.Children) ?? (IEnumerable)new IDocument[0]); + if(subChildren.Length > 0) + { + // Parent +
  • + @childTitle +
      + @Html.Partial("Sidebar/_ChildPagesMenu", subChildren) +
    +
  • + } + else + { + // Leaf +
  • @childTitle
  • + } + } + } + } +} diff --git a/Documentation/input/Shared/Sitebar/_ChildPagesMenu.cshtml b/Documentation/input/Shared/Sitebar/_ChildPagesMenu.cshtml deleted file mode 100644 index feae3cb9b..000000000 --- a/Documentation/input/Shared/Sitebar/_ChildPagesMenu.cshtml +++ /dev/null @@ -1,57 +0,0 @@ -@model IReadOnlyList - -@{ - // Group by category - IList> categoryGroups = Model - .GroupBy(x => x.String(DocsKeys.Category)) - .OrderBy(x => x.Key) - .ToList(); - foreach(IGrouping categoryGroup in categoryGroups) - { - if(!string.IsNullOrWhiteSpace(categoryGroup.Key)) - { -
  • @categoryGroup.Key
  • - } - - // Iterate documents in this category - foreach(IDocument child in categoryGroup - .OrderBy(x => x.Get(DocsKeys.Order, 1000)) - .ThenBy(x => x.WithoutSettings.String(Keys.Title))) - { - object[] currentTreePath = Document.Get(Keys.TreePath); - object[] childTreePath = child.Get(Keys.TreePath); - string childTitle = child.WithoutSettings.String(Keys.Title, childTreePath.Last().ToString()); - string parentActive = currentTreePath.Take(childTreePath.Length).SequenceEqual(childTreePath) ? "active" : null; - string childSelected = parentActive != null && currentTreePath.Length == childTreePath.Length ? "selected" : null; - IReadOnlyList children = child.DocumentList(Keys.Children); - if(children != null && children.Count > 0) - { - // Parent -
  • - @childTitle -
      - @Html.Partial("Sidebar/_ChildPagesMenu", children) -
    -
  • - } - else - { - // Leaf -
  • - @if(child.ContainsKey("Todo")) - { - - @childTitle - (work in progress) - - } - else - { - @childTitle - } - -
  • - } - } - } -} \ No newline at end of file diff --git a/Documentation/input/_Bottom.cshtml b/Documentation/input/_Bottom.cshtml new file mode 100644 index 000000000..a8a987f32 --- /dev/null +++ b/Documentation/input/_Bottom.cshtml @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/Documentation/input/_Head.cshtml b/Documentation/input/_Head.cshtml new file mode 100644 index 000000000..1c5145a73 --- /dev/null +++ b/Documentation/input/_Head.cshtml @@ -0,0 +1,3 @@ + + + diff --git a/Documentation/input/_Master.cshtml b/Documentation/input/_Master.cshtml deleted file mode 100644 index 6dc262c70..000000000 --- a/Documentation/input/_Master.cshtml +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - - - - @Context.String(DocsKeys.Title, "Docs") - @ViewData[Keys.Title] - - - - - - - - - - - - - - - - - - - @Html.Partial("_Head") - - @{ - string layoutTopNav = Model.Bool(DocsKeys.NoSidebar, false) ? "layout-top-nav" : string.Empty; - string noGutter = Model.Bool(DocsKeys.NoGutter, false) ? "no-gutter" : string.Empty; - } - -
    - @{ - string withContainer = Model.Bool(DocsKeys.NoContainer, false) ? null : "with-container"; - } -
    - -
    - - - - -
    - - - - - -
    - @RenderBody() -
    - - -
    -
    - - @* - - - -
    - *@ -
    -
    -
    - @Html.Partial("_Footer") -
    -
    - - - - - - - @Html.Partial("_Bottom") - - - - \ No newline at end of file diff --git a/Documentation/input/_Navbar.cshtml b/Documentation/input/_Navbar.cshtml deleted file mode 100644 index 3a6cc15e7..000000000 --- a/Documentation/input/_Navbar.cshtml +++ /dev/null @@ -1,14 +0,0 @@ -@{ - List> pages = new List> - { - Tuple.Create("Features", Context.GetLink("features")), - Tuple.Create("Examples", Context.GetLink("examples")), - Tuple.Create("AlphaTex", Context.GetLink("alphatex")), - Tuple.Create("API", Context.GetLink("api")) - }; - foreach(Tuple page in pages) - { - string active = Context.GetLink(Document).StartsWith(page.Item2) ? "active" : null; -
  • @Html.Raw(page.Item1)
  • - } -} \ No newline at end of file diff --git a/Documentation/input/alphatex/index.cshtml b/Documentation/input/alphatex/index.cshtml index 19b5652ff..c69c61ac1 100644 --- a/Documentation/input/alphatex/index.cshtml +++ b/Documentation/input/alphatex/index.cshtml @@ -1,5 +1,6 @@ Title: AlphaTex TexSample: true +ShowInNavbar: true ---

    Introduction

    diff --git a/Documentation/input/assets/css/override.css b/Documentation/input/assets/css/override.css index e49e96b29..89649225a 100644 --- a/Documentation/input/assets/css/override.css +++ b/Documentation/input/assets/css/override.css @@ -1,96 +1,54 @@ -.main-header { +.top-banner { background-image: linear-gradient(to bottom,#fff 0,#f8f8f8 100%); background-repeat: repeat-x; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075); } -.main-header .logo, .main-header .navbar { - background: none !important; -} - -.main-header .logo img { - height: 30px; -} - -.main-header .navbar .nav > li > a { - color: #777; -} -.main-header .navbar .nav > li > a:hover { - color: #333; - background-color: transparent; -} - - .main-header .navbar .nav > .active > a, - .main-header .navbar .nav > .open > a { - color: #555; - background-color: #e7e7e7; - background-image: linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%); - background-repeat: repeat-x; - box-shadow: inset 0 3px 9px rgba(0,0,0,.075); - } - - .main-header .navbar .nav > .active > a:hover, - .main-header .navbar .nav > .open > a:hover { - color: #555; - background-color: #e7e7e7; - } - -.content-header h1 { - color: #426d9d; +.main-header { + background-image: linear-gradient(to bottom,#fff 0,#fbfbfb 100%); + background-repeat: repeat-x; } -.menu-container { - column-count: 2; +.content, .content-header { + padding-left: 12px; + padding-right: 12px; } -.tab-content { - border-left: 1px solid #ddd; - border-right: 1px solid #ddd; - border-bottom: 1px solid #ddd; - padding: 10px; +.main-header .logo, .main-header .navbar { + background: none !important; } -.alphaTabSurface { - box-shadow: 0 0 10px rgba(0,0,0,0.3); - background: #FFF; - border-radius: 3px; +.main-header .navbar .nav > li > a { + color: #777; } -.example-source, .description { - margin-bottom: 10px; +.main-header .logo img { + height:100%; + width:auto; } -.infobar { - position: static; - right: auto !important; - top: auto !important; - width: auto !important; - padding: 30px 12px 0 12px !important; +.main-header .logo .logo-lg, +.main-header .logo .logo-mini { + height: 30px; } -.infobar.affix { - position: static !important; - left: auto !important; - margin-left: 0 !important; +.type-table code, +.reference-table code { + font-size:80%; + border: 1px solid #dedede; + white-space: nowrap; } -.sidebar { - padding-top: 0 !important; +.type-table code .code-badge, +.reference-table code .code-badge { + border-left: 1px solid #DEDEDE; + padding-left: 5px; + opacity: 0.5; } -@media only screen and (max-width: 1670px) and (min-width: 1250px) { - .wrapper.with-container { - max-width: none; - left: 0; - } +.main-header .navbar .sidebar-toggle { + color: #777; } - -.wip { - color: #999; - font-size: 12px; - font-weight: normal; +.main-header .navbar .navbar-toggle { + display: none; } - -.menu-block td { - width: 100%; -} \ No newline at end of file diff --git a/Documentation/input/assets/index.cshtml b/Documentation/input/assets/index.cshtml new file mode 100644 index 000000000..21ec46b13 --- /dev/null +++ b/Documentation/input/assets/index.cshtml @@ -0,0 +1,2 @@ +ShowInNavbar: false +--- \ No newline at end of file diff --git a/Documentation/input/docs/command-line.md b/Documentation/input/docs/command-line.md deleted file mode 100644 index 3a9a56c27..000000000 --- a/Documentation/input/docs/command-line.md +++ /dev/null @@ -1,3 +0,0 @@ -Description: How to use the command line. ---- -Here are some instructions on how to use the command line. \ No newline at end of file diff --git a/Documentation/input/docs/usage.md b/Documentation/input/docs/usage.md deleted file mode 100644 index 127a961b1..000000000 --- a/Documentation/input/docs/usage.md +++ /dev/null @@ -1,3 +0,0 @@ -Description: Library usage instructions. ---- -To use this library, take these steps... \ No newline at end of file diff --git a/Documentation/input/examples/api/settings.cshtml b/Documentation/input/examples/api/settings.cshtml deleted file mode 100644 index cabd3e146..000000000 --- a/Documentation/input/examples/api/settings.cshtml +++ /dev/null @@ -1,6 +0,0 @@ -Title: List of all settings and methods -Order: 0 -Todo: true ---- - -

    This example is not yet available.

    \ No newline at end of file diff --git a/Documentation/input/examples/general/html5.cshtml b/Documentation/input/examples/general/html5.cshtml index 0b87d5b2d..5382066ce 100644 --- a/Documentation/input/examples/general/html5.cshtml +++ b/Documentation/input/examples/general/html5.cshtml @@ -15,7 +15,7 @@ Order: 3
    -
    +
    @@ -29,7 +29,7 @@ Order: 1
    -
    +
    @@ -29,7 +29,7 @@ Order: 0
    -
    +
    @@ -27,7 +27,7 @@ Order: 0
    -
    +
    @@ -28,7 +28,7 @@ Order: 1
    -
    +
    @@ -27,7 +27,7 @@ Order: 6
    -
    +
    @@ -27,7 +27,7 @@ Order: 1
    -
    +
    @@ -30,7 +30,7 @@ Order: 0
    -
    +
    @@ -27,7 +27,7 @@ Order: 2
    -
    +