Skip to content

Commit

Permalink
docs: install memberpage plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
azyobuzin committed Mar 24, 2021
1 parent 0ebfdcc commit 1e81584
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ jobs:
- name: dotnet restore
run: dotnet restore

- name: Install docfx
run: choco install docfx -y
- name: paket install
run: |
dotnet tool restore
dotnet paket install
working-directory: docs

- name: Build
run: docfx
run: ./packages/docfx.console/tools/docfx
working-directory: docs

- name: Deploy
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ _TeamCity*
!.axoCover/settings.json

# Coverlet is a free, cross platform Code Coverage Tool
coverage*[.json, .xml, .info]
coverage*.json
coverage*.xml
coverage*.info

# Visual Studio code coverage results
*.coverage
Expand Down Expand Up @@ -358,6 +360,3 @@ MigrationBackup/

# Fody - auto-generated XML schema
FodyWeavers.xsd

# docfx
_site/
12 changes: 12 additions & 0 deletions docs/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"paket": {
"version": "5.257.0",
"commands": [
"paket"
]
}
}
}
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/_site/
/paket.lock
/packages/
3 changes: 2 additions & 1 deletion docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
],
"dest": "_site",
"template": [
"default"
"default",
"./packages/memberpage/content"
],
"xrefService": [
"https://xref.docs.microsoft.com/query?uid={uid}"
Expand Down
5 changes: 5 additions & 0 deletions docs/paket.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
storage: packages
source https://api.nuget.org/v3/index.json

nuget docfx.console ~> 2.56
nuget memberpage ~> 2.56
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static IAsyncEnumerable<TOutput> AsAsyncEnumerable<TOutput>(this ISourceB
/// </para>
/// </remarks>
/// <example>
/// <code><![CDATA[
/// <code language="csharp"><![CDATA[
/// await AsyncEnumerable.Range(1, 100)
/// // Process elements in parallel with IPropagatorBlock
/// .RunThroughDataflowBlock(cancellationToken =>
Expand Down
2 changes: 1 addition & 1 deletion src/BiDaFlow/Blocks/DropBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace BiDaFlow.Blocks
/// Provides a dataflow block that drops input items.
/// </summary>
/// <example>
/// <code><![CDATA[
/// <code language="csharp"><![CDATA[
/// var sourceBlock = new BufferBlock<int>();
/// for (int i = 1; i <= 5; i++)
/// sourceBlock.Post(i);
Expand Down
4 changes: 2 additions & 2 deletions src/BiDaFlow/Fluent/FluentDataflow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static IPropagatorBlock<TInput, TOutput> Merge<TInput, TOutput>(this IPro
/// </remarks>
/// <example>
/// This sample shows how to merge some source blocks.
/// <code><![CDATA[
/// <code language="csharp"><![CDATA[
/// IReadOnlyList<ISourceBlock<T>> sources;
/// ITargetBlock<T> target;
///
Expand Down Expand Up @@ -431,7 +431,7 @@ public static IDisposable LinkWithProbe<T>(this ISourceBlock<T> source, ITargetB

/// <exception cref="ArgumentNullException"><paramref name="source"/>, <paramref name="target"/> or <paramref name="probe"/> is <see langword="null"/>.</exception>
/// <example>
/// <code><![CDATA[
/// <code language="csharp"><![CDATA[
/// IDisposable unlinker = source.LinkWithProbe(target, new ConsoleProbe<T>("ExampleLink"));
///
/// class ConsoleProbe<T> : ILinkProbe<T>
Expand Down

0 comments on commit 1e81584

Please sign in to comment.