Skip to content

Format config/defaults.hjson before committing#1860

Merged
dessalines merged 1 commit intomainfrom
config-defaults-formatting
Oct 22, 2021
Merged

Format config/defaults.hjson before committing#1860
dessalines merged 1 commit intomainfrom
config-defaults-formatting

Conversation

@Nutomic
Copy link
Member

@Nutomic Nutomic commented Oct 22, 2021

Moved this logic from LemmyNet/lemmy-docs#102 to this repo, as people might look at config/defaults.hjson directly.

Comment on lines +7 to +13
# replace // comments with #
sed -i "s/\/\//#/" "$dest"
# remove trailing commas
sed -i "s/,\$//" "$dest"
# remove quotes around json keys
sed -i "s/\"//" "$dest"
sed -i "s/\"//" "$dest"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note, but its worth asking for hjson support in doku, so we don't have to do this step at all. Open up an issue asking them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be the three issues linked here by the maintainer. Ive subscribed to them to get notified when they get implemented.

@dessalines dessalines merged commit 7bfe59a into main Oct 22, 2021
@Nothing4You Nothing4You deleted the config-defaults-formatting branch September 11, 2025 17:30
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