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

Format config/defaults.hjson before committing #1860

Merged
merged 1 commit into from
Oct 22, 2021

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
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