be explicit about .html suffix
This commit is contained in:
parent
1ecda8cf4d
commit
0578729468
@ -12,30 +12,30 @@ impl HelpPage {
|
|||||||
|
|
||||||
fn to_link_suffix(self) -> &'static str {
|
fn to_link_suffix(self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
HelpPage::NoteType => "getting-started#note-types",
|
HelpPage::NoteType => "getting-started.html#note-types",
|
||||||
HelpPage::Browsing => "browsing",
|
HelpPage::Browsing => "browsing.html",
|
||||||
HelpPage::BrowsingFindAndReplace => "browsing#find-and-replace",
|
HelpPage::BrowsingFindAndReplace => "browsing.html#find-and-replace",
|
||||||
HelpPage::BrowsingNotesMenu => "browsing#notes",
|
HelpPage::BrowsingNotesMenu => "browsing.html#notes",
|
||||||
HelpPage::KeyboardShortcuts => "studying#keyboard-shortcuts",
|
HelpPage::KeyboardShortcuts => "studying.html#keyboard-shortcuts",
|
||||||
HelpPage::Editing => "editing",
|
HelpPage::Editing => "editing.html",
|
||||||
HelpPage::AddingCardAndNote => "editing#adding-cards-and-notes",
|
HelpPage::AddingCardAndNote => "editing.html#adding-cards-and-notes",
|
||||||
HelpPage::AddingANoteType => "editing#adding-a-note-type",
|
HelpPage::AddingANoteType => "editing.html#adding-a-note-type",
|
||||||
HelpPage::Latex => "math#latex",
|
HelpPage::Latex => "math.html#latex",
|
||||||
HelpPage::Preferences => "preferences",
|
HelpPage::Preferences => "preferences.html",
|
||||||
HelpPage::Index => "",
|
HelpPage::Index => "",
|
||||||
HelpPage::Templates => "templates/intro",
|
HelpPage::Templates => "templates/intro.html",
|
||||||
HelpPage::FilteredDeck => "filtered-decks",
|
HelpPage::FilteredDeck => "filtered-decks.html",
|
||||||
HelpPage::Importing => "importing",
|
HelpPage::Importing => "importing.html",
|
||||||
HelpPage::CustomizingFields => "editing#customizing-fields",
|
HelpPage::CustomizingFields => "editing.html#customizing-fields",
|
||||||
HelpPage::DeckOptions => "deck-options",
|
HelpPage::DeckOptions => "deck-options.html",
|
||||||
HelpPage::EditingFeatures => "editing#features",
|
HelpPage::EditingFeatures => "editing.html#features",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use super::*;
|
use std::iter;
|
||||||
|
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
@ -44,9 +44,10 @@ mod test {
|
|||||||
BasicContext,
|
BasicContext,
|
||||||
};
|
};
|
||||||
use reqwest::Url;
|
use reqwest::Url;
|
||||||
use std::iter;
|
|
||||||
use strum::IntoEnumIterator;
|
use strum::IntoEnumIterator;
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
/// Aggregates [`Outcome`]s by collecting the error messages of the invalid ones.
|
/// Aggregates [`Outcome`]s by collecting the error messages of the invalid ones.
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct Outcomes(Vec<String>);
|
struct Outcomes(Vec<String>);
|
||||||
|
Loading…
Reference in New Issue
Block a user