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

Settings doc #252

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Settings doc #252

wants to merge 6 commits into from

Conversation

wronglink
Copy link
Contributor

Added new doc section about pudb configuration with list of available config option. Mostly copy-pasted help text for options from settings.py.

@inducer
Copy link
Owner

inducer commented Apr 14, 2017

Thanks for your contribution! I'm not sure I would like to have the config file documented, since that makes evolving it substantially harder, because there's documented behavior with which we'd have to retain backwards compatibility...

@inducer
Copy link
Owner

inducer commented Apr 14, 2017

@asmeurer, opinions?

Configuration
-------------

PuDB uses configuration file is located at ``~/.config/pudb/pudb.cfg``.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual location is based on the XDG logic at the top of settings.py.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Added corrections there.

@asmeurer
Copy link
Collaborator

I guess that came from the discussion at #246 whether to add a setting to the UI. If we want to keep the file location undocumented then we should keep all the settings in the UI.

@wronglink
Copy link
Contributor Author

I guess that came from the discussion at #246

Right. I haven't found any suitable place to mention the new setting in the docs. And additionally, I thought it would be much more convenient to list all settings in the docs.

I'm not sure I would like to have the config file documented, since that makes evolving it substantially harder ... we'd have to retain backwards compatibility

Actually, yes. But we already have to. Users already can tune some settings and new versions will have to deal with that legacy (the same is applicable for changing the theme format). I think there could be some deprecation mechanisms. And also, it forces us to pay more attention to changelog (and mention any deprecations there). Additionally this is a good point to generate versioned docs. Tornado for example has docs for several versions: last stable and quite old 3.2 branch.

I also think, that it's just the first step for settings doc. Ideally this kind of doc should be generated from the code (like uWSGI project does)

@asmeurer
Copy link
Collaborator

Pudb is an application, not a library, so that sort of thing is a lot less important for it.


Show or hide the line numbers in the source code pane.

sidebar_width
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these should be documented. Plus the text you have here isn't very helpful anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you. But before I update this PR I'd like to understand if has any chance to be merged.

@inducer are you strictly against of merging this PR or we can discuss and polish these changes to get them merged?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge it. But I'm not enamored with the content--so if it falls too far out of date at some point in the future, I may just delete it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have an idea to make it autogeneratable for the next step. So it wouldn't get out of date.

@wronglink
Copy link
Contributor Author

Hi there. I've updated config doc. I've removed such inner settings like sidebar_width.

@@ -0,0 +1,87 @@
Configuration
-------------

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should state at the top that you can change the settings within PuDB by pressing Ctrl-p. That's the most important thing here (and it isn't obvious to everyone).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you push? I don't see it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. Something went wrong. Pushed it.

@wronglink
Copy link
Contributor Author

I've slightly fixed the configuration text and options order (to be consistent with the configuration dialog).

@inducer
Copy link
Owner

inducer commented May 4, 2017

Thanks for your contribution. This needs extensive proofreading before it's ready to merge. Also please stick to AE conventions for consistency. Please use ReST roles as documented with Sphinx.

@wronglink
Copy link
Contributor Author

AE conventions for consistency

Sorry, I'm not familiar with that conventions. Could you give me a link where I can read about that conventions?

Please use ReST roles as documented with Sphinx.

Do you mean use of double backquotes for setting name (like ``line_numbers``) is not a good idea and I should use some of sphinx domains?

@inducer
Copy link
Owner

inducer commented May 5, 2017

Sorry, I'm not familiar with that conventions

https://en.wikipedia.org/wiki/American_English

Do you mean use of double backquotes for setting name (like line_numbers) is not a good idea

E.g.

:file:`xyz.txt`

@inducer
Copy link
Owner

inducer commented May 5, 2017

@wronglink
Copy link
Contributor Author

@inducer thanks for links. English is not native language for me. So I definitely agree with you:

This needs extensive proofreading before it's ready to merge.

I still don't get notice about ReST roles. The only file links in the doc are pudb.cfg paths. Should I use file role for that case instead of code role?

Base automatically changed from master to main March 8, 2021 02:14
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.

None yet

3 participants