-
Notifications
You must be signed in to change notification settings - Fork 23
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
Create FAQ markdown #15
Comments
Good idea to update it! There are two possibilities:
|
As I have no idea about the difference of these two possibilities I would prefer the one which is more straight forward to edit later on. |
Yesterday I've pushed a new experimental branch for this: Today I had a new idea: Don't use a single YAML file, but one file per faq entry organized in folders.
They will be sorted by filename (but I need to test this first) and each faq will be like title: Title of the FAQ entry
id: some_string
content: |
This is the content of the FAQ entry Reason for ID: Currently the anchor is generated from the index of the item. So when you insert another FAQ entry in the middle the IDs will change. This is bad. With this ID you'll get a permalink that won't change. I'll test this today or tomorrow. |
Why not build the ID automatically from the title? If the title changes, the ID should also change. |
Should be possible: https://github.com/shopify/liquid/wiki/liquid-for-designers#standard-filters |
Implementation with multiple files: I'm not happy with it. |
@SammysHP DId you come to a conclusion with your different approaches? |
Not yet. I have only very little time in the next weeks (exams) and hope that some of you have good ideas and improvements for my drafts so that someone can make it better and merge it. |
If I get it right, the question here is just whether to use a single file or multiple files. As you said you may not have time, I suggest that we simply merge one of the two alternatives, even if we cannot fully estimate the different pros and cons. I can't judge, but if no one raises another opinion, then I will merge the first single file approach at the weekend. Reason is that I want to enable all of us to continue the writing of the FAQ. We can later still refactor to another approach, should that be necessary. PS: I could not try it locally. The installation of the ruby stuff already breaks on my Ubuntu system... |
Independent of the version (single vs multiple files) we should use at least the style of the second implementation as it is much better (but still far a way from nice). |
I've merged the first (single file) implementation with some improvements. Please test and improve. @Lineflyer |
Thanks, I started looking into it and experimented already in my fork. One question regarding the syntax: Here: https://github.com/Lineflyer/lineflyer.github.io/blob/master/_data/faq.yml I want:
but I get either (with linefeed):
or (if I remove the linefeed):
|
Regarding the process of migrating the FAQ: Remark: For everything which is on I will especially take care for:
|
@SammysHP |
I think that is perfectly fine. Cause it means that afterwards everyone can already rework the existing files, even though not everything is transferred yet. |
Newline:
Permalinks: Instead of:
we could use:
|
I continued on the work today and meanwhile got aware of the pitfalls regarding the syntax. I would like to continue the migration myself, but feel free to improve the part which is already pushed to |
I am done with transfering it to the markdown file. I am sure there are still some format problems, typos and also the grammar might not be 100%. |
Once created I volunteer to fill it based on the existing FAQ if it is a markdown file (maybe prefilled with a placeholder to understand the needed markdown syntax).
Just copying might not be enough as some items might be outdated (last general update was done some months ago), so I would like to update while transfering it.
The text was updated successfully, but these errors were encountered: