Skip to content

Release 3.1.1 - #13

Merged
kampute merged 2 commits into
mainfrom
v3.1.1
Oct 13, 2026
Merged

kampute merged 2 commits into
mainfrom
v3.1.1

Conversation

@kampute

@kampute kampute commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Place the GitLab Wiki main topic at the home path

GitLab serves the page at the path home as the front page of a wiki. GitLabWikiStrategy named the main topic's page after its title, so a wiki generated with MainTopicId had no front page.

Changes

  • MarkdownAddressingStrategy has a new protected IsMainTopic(ITopic) that tells whether a topic is the main topic. Subclasses that override the path methods can use it to recognize the main topic.
  • The main path is now resolved through the virtual GetTopicPath. GitLabWikiStrategy overrides GetTopicPath and returns home for the main topic.
  • The main and API topic identifiers are now fields, so the private path resolvers take no parameters.
  • The version is bumped to 3.1.1.

Behavior changes

  • GitLab Wiki main topic: it used to be placed at its encoded title, such as Welcome, with the other pages under Welcome/. It is now placed at home, with the other pages under home/.
  • Topic named like the main page: a top-level topic whose page name matched the main page's name got the main page's path and overwrote it. It is now nested under the main page like any other topic. This applies to every Markdown strategy, including DevOpsWikiStrategy.

DevOpsWikiStrategy addresses are otherwise unchanged, and no public or protected member was removed or changed.

Testing

  • MainTopicIdAndApiTopicId_PlaceMainTopicAtHomePathAndPagesUnderIt replaces the previous GitLab main-topic test. Its main topic is titled "Welcome", so the test shows the path no longer follows the title. It failed before the fix and passes now.
  • MainTopicId_TopicNamedLikeHomePage_IsNestedUnderHomePage covers the collision case. It fails if the old path comparison is restored.
  • dotnet build -c Release has no warnings, and dotnet test --no-build -c Release passes all 3759 tests.
  • The XML documentation audit reports no issues.
  • Kampose's 575 tests pass against a locally packed 3.1.1.

GitLab serves the page at the path home as the front page of a wiki, but
GitLabWikiStrategy named the page of the main topic after its title, so a
wiki generated with MainTopicId had no front page.

MarkdownAddressingStrategy now identifies the main topic with the new
protected IsMainTopic and resolves the main path through GetTopicPath, which
GitLabWikiStrategy overrides to return home for the main topic. The topic
identifiers are kept in fields, so the path resolvers take no parameters.

Behavior changes:
- GitLabWikiStrategy placed the main topic at its encoded title, such as
  Welcome, with the other pages under Welcome/. It now places the main topic
  at home, with the other pages under home/.
- A top-level topic whose page name matched the name of the main page got
  the path of the main page and overwrote it. It is now nested under the
  main page like any other topic.
@kampute
kampute merged commit fcfbe25 into main Oct 13, 2026
1 check passed
@kampute
kampute deleted the v3.1.1 branch October 13, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants