Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add structured section references #616

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions stroeer/page/section/v1/section_page.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,19 @@ message SectionPage {
message Section {
// Generic map containing general content and configuration information of
// the section (required).
//
// The entry set is defined by the content management system and
// will vary depending on the main type of the article.
//
// This map will always contain non empty values for the following keys:
//
// * `ref_path`: URL path for this section e.g. /section/id_$ID/title.html
// * `ref_canonical`: Canonical URL of this section, may differ if external, e.g. https://www.giga.de/tech/
//
// Clients must be resilient to unknown or missing entry sets.
map<string, string> fields = 1;

// Hierarchical section tree information of the section (required).
// References, e.g. URLs belonging to this section (required).
// For example:
// `/` -> `/sport/` -> `/sport/fussball/`
// @Deprecated in favor of references
// * `internal`: URL path for this section e.g. /section/id_$ID/title.html
// * `external`: Canonical URL of this section, may differ if external, e.g. https://www.giga.de/tech/
stroeer.core.v1.Reference section_tree = 2;

repeated stroeer.core.v1.Reference references = 3;
}

// Page navigation including internal and external references
Expand Down
Loading