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

Get Github to generate previews of docs content (change .txt files to .rst) #255

Closed
mradamcox opened this issue Jul 8, 2021 · 3 comments
Assignees

Comments

@mradamcox
Copy link
Member

mradamcox commented Jul 8, 2021

describe the issue

Currently we have Restructured Text content stored in .txt files. While this is properly rendered by Sphinx, Github doesn't recognize .txt files as restructured text so it only displays the raw file content. I was just looking at the QGIS website repo (e.g. https://github.com/qgis/QGIS-Website/tree/master/source/site/about) and realized that their .rst files are properly previewed by Github. So we should switch all of our files to .rst extension.

Being able to preview the markup directly in Github will make it much easier for quick edits and new editors to understand how their changes to the docs will appear in the readthedocs deployment.

which release does this issue concern?

just change the main branch, maybe 5.1 as well??

@mradamcox mradamcox self-assigned this Jul 8, 2021
@mradamcox
Copy link
Member Author

Just did a quick test on a temporary branch and changing the extension of a file to .rst and adding '.rst' here https://github.com/archesproject/arches-docs/blob/master/docs/conf.py#L42 does work as expected.

@mradamcox
Copy link
Member Author

Big downside to this is that git history is lost, because the original file is deleted and a new one created in its place. This may be a big enough drawback to abandon this idea.

mradamcox added a commit that referenced this issue Jan 25, 2022
Signed-off-by: Adam Cox <mr.adamcox@gmail.com>
@mradamcox mradamcox mentioned this issue Jan 25, 2022
3 tasks
mradamcox added a commit that referenced this issue Jan 25, 2022
Signed-off-by: Adam Cox <mr.adamcox@gmail.com>
@mradamcox
Copy link
Member Author

Closing, as I think enough guidance now has been added in the README and else to point people to creating new files in .rst. This should slowly move us to the goal of this ticket without having to lose the git history on every file all at once.

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

No branches or pull requests

1 participant