diff --git a/WikiClientLibrary/Generators/AllPagesGenerator.cs b/WikiClientLibrary/Generators/AllPagesGenerator.cs
index 64977ccde..6f518d2fe 100644
--- a/WikiClientLibrary/Generators/AllPagesGenerator.cs
+++ b/WikiClientLibrary/Generators/AllPagesGenerator.cs
@@ -15,6 +15,11 @@ namespace WikiClientLibrary.Generators
///
/// Generates all the pages in a specific namespace.
///
+ ///
+ /// To enumerate all the categories used on a wiki site,
+ /// along with those without existing category pages, use .
+ ///
+ ///
public class AllPagesGenerator : WikiPageGenerator
{
@@ -23,7 +28,10 @@ public AllPagesGenerator(WikiSite site) : base(site)
{
}
- public int NamespaceId { get; set; } = 0;
+ ///
+ /// List all the pages in this namespace.
+ ///
+ public int NamespaceId { get; set; } = BuiltInNamespaces.Main;
///
/// Start listing at this title. The title need not exist.
diff --git a/WikiClientLibrary/Generators/RecentChangesGenerator.cs b/WikiClientLibrary/Generators/RecentChangesGenerator.cs
index b8980b1d3..b1ffc61c3 100644
--- a/WikiClientLibrary/Generators/RecentChangesGenerator.cs
+++ b/WikiClientLibrary/Generators/RecentChangesGenerator.cs
@@ -70,10 +70,19 @@ public RecentChangesGenerator(WikiSite site) : base(site)
///
public RecentChangesFilterTypes TypeFilters { get; set; } = RecentChangesFilterTypes.All;
+ ///
+ /// Whether to list minor edits.
+ ///
public PropertyFilterOption MinorFilter { get; set; }
+ ///
+ /// Whether to list bot edits.
+ ///
public PropertyFilterOption BotFilter { get; set; }
+ ///
+ /// Whether to list edits by anonymous users.
+ ///
public PropertyFilterOption AnonymousFilter { get; set; }
///
@@ -158,6 +167,7 @@ public override IEnumerable> EnumGeneratorParameter
// if a wiki page is modified more than once. And when a page title is shown for the
// 2nd, 3rd, etc time, only the properties that has been changed will be included in JSON,
// which will screw up Page.LoadFromJson .
+ ///
protected override bool DistinctGeneratedPages => true;
///
diff --git a/WikiClientLibrary/Generators/WikiPageExtensions.cs b/WikiClientLibrary/Generators/WikiPageExtensions.cs
index a9c5766be..ee0102000 100644
--- a/WikiClientLibrary/Generators/WikiPageExtensions.cs
+++ b/WikiClientLibrary/Generators/WikiPageExtensions.cs
@@ -11,18 +11,33 @@ namespace WikiClientLibrary.Generators
public static class WikiPageExtensions
{
+ ///
+ /// Creates a instance from the specified page,
+ /// which generates pages from all links on the page.
+ ///
+ /// The page.
public static LinksGenerator CreateLinksGenerator(this WikiPage page)
{
if (page == null) throw new ArgumentNullException(nameof(page));
return new LinksGenerator(page.Site, page.Title);
}
+ ///
+ /// Creates a instance from the specified page,
+ /// which generates pages from all pages (typically templates) transcluded in the page.
+ ///
+ /// The page.
public static TransclusionsGenerator CreateTransclusionsGenerator(this WikiPage page)
{
if (page == null) throw new ArgumentNullException(nameof(page));
return new TransclusionsGenerator(page.Site, page.Title);
}
+ ///
+ /// Creates a instance from the specified page,
+ /// which enumerates the sequence of revisions on the page.
+ ///
+ /// The page.
public static RevisionsGenerator CreateRevisionsGenerator(this WikiPage page)
{
if (page == null) throw new ArgumentNullException(nameof(page));
diff --git a/WikiClientLibrary/WikiClientLibrary.csproj b/WikiClientLibrary/WikiClientLibrary.csproj
index b7ba2d76c..87c345af5 100644
--- a/WikiClientLibrary/WikiClientLibrary.csproj
+++ b/WikiClientLibrary/WikiClientLibrary.csproj
@@ -4,9 +4,9 @@
netstandard1.1;netstandard2.0
WikiClientLibrary
CXuesong.MW.WikiClientLibrary
- 0.6.0
- 0.6.0.18
- 0.6.0.18
+ 0.6.1
+ 0.6.1.0
+ 0.6.1.0
Copyright (C) CXuesong 2018
Wiki Client Library is a .NET Standard & asynchronous client library for MediaWiki sites.
@@ -33,7 +33,7 @@
True
CXuesong
- 1701;1702;1705;1573;1591
+ 1701;1702;1705;1573;1591
true
../WikiClientLibrary.snk
True