-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Readme reference compose file contents #117
Readme reference compose file contents #117
Conversation
Thanks, but I want to show. |
@louislam: Perhaps it is not clear, but the contents will still be shown/visible in the README on Github. It will be displayed in the same way as my original PR description comment. Here's an article explaining: https://www.stevemar.net/github-code-in-readme/, and the example repo illustrating the feature: https://github.com/stevemar/code-reference-in-readme. If you still prefer to manage the same file content in two different places then ok no problem. :) |
https://github.com/RyanBalfanz/dockge/tree/readme-reference-compose-file-contents Does it also apply to README.md? I checked your branch, it doesn't seem to be working. |
Yes, creating a permanent link to a code snippet works in the README.md (and other files) within a repository. It won't work in my branch because it is a different repository and I updated the link to point to yours. I tried to create a repo agnostic permanent link but that does not work in GH. By using that first commit in my branch, you can observe the change in action in my repo by looking at the README.md file from that point in history: https://github.com/louislam/dockge/tree/1942b81f1a5567e9b2e6ebf683e26c772c066dd0#advanced. ![]() |
Thanks. It is good. |
On the compose file, I created a new discussion post over at #146. |
Reference the contents of
compose.yaml
directly in the README, for example:dockge/compose.yaml
Lines 1 to 23 in 2e26178