Skip to content

Commit

Permalink
Improve config docs for general.initial_consent (#1206)
Browse files Browse the repository at this point in the history
The suggested code there would open a new section, making all values
below it belong to that section. And since those are unknown and none
are required, they are silently ignored.
  • Loading branch information
owi92 authored Jul 11, 2024
2 parents c898281 + 3481dc5 commit fdfb2f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions backend/src/config/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ pub(crate) struct GeneralConfig {
/// Example:
///
/// ```
/// [general.initial_consent]
/// title.en = "Terms & Conditions"
/// button.en = "Agree"
/// text.en = """
/// initial_consent.title.en = "Terms & Conditions"
/// initial_consent.button.en = "Agree"
/// initial_consent.text.en = """
/// To use Tobira, you need to agree to our terms and conditions:
/// - [Terms](https://www.our-terms.de)
/// - [Conditions](https://www.our-conditions.de)
Expand Down
7 changes: 3 additions & 4 deletions docs/docs/setup/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@
# Example:
#
# ```
# [general.initial_consent]
# title.en = "Terms & Conditions"
# button.en = "Agree"
# text.en = """
# initial_consent.title.en = "Terms & Conditions"
# initial_consent.button.en = "Agree"
# initial_consent.text.en = """
# To use Tobira, you need to agree to our terms and conditions:
# - [Terms](https://www.our-terms.de)
# - [Conditions](https://www.our-conditions.de)
Expand Down

0 comments on commit fdfb2f4

Please sign in to comment.