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

Make the default config table searchable in docs #3402

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

imreddyTeja
Copy link
Contributor

The content of the old config.md was moved into config_no_table.md with the include("config_table.jl") at the bottom removed.

Now, config_table.jl, creates the config.md by reading config_no_table.md and copying the lines into it. Then, it generates the pretty table and adds it to the end of the file.

This allows the table to be searchable, but it does not require users to manually update the docs when the default config yaml is modified.

Purpose

closes #3301

To-do

Content


  • I have read and checked the items on the review checklist.

@imreddyTeja imreddyTeja marked this pull request as draft October 25, 2024 22:05
@imreddyTeja imreddyTeja marked this pull request as ready for review October 25, 2024 22:43
@imreddyTeja imreddyTeja requested a review from Sbozzolo October 25, 2024 22:43
@Sbozzolo
Copy link
Member

I think the file should not be checked in with git, since it is dynamically generated

@imreddyTeja imreddyTeja force-pushed the tr/make-default-config-table-searchable branch from 0401578 to c1b7376 Compare October 28, 2024 21:39
The content of the old config.md was moved into config_no_table.md
with the include("config_table.jl") at the bottom removed.

Now, config_table.jl, creates the config.md by reading
config_no_table.md and copying the lines into it. Then,
it generates the pretty table and adds it to the end of the file.

This allows the table to be searchable, but it does not require users
to manually update the docs when the default config yaml is modified.

Fix formatting

Remove generated config.md from git index
@imreddyTeja imreddyTeja force-pushed the tr/make-default-config-table-searchable branch from c1b7376 to 0251c91 Compare October 28, 2024 23:29
@Sbozzolo Sbozzolo added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit 6ba2dce Oct 29, 2024
16 checks passed
@Sbozzolo Sbozzolo deleted the tr/make-default-config-table-searchable branch October 29, 2024 16:25
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.

julia (pretty_table) output to docs is not searchable
2 participants