pudb icon indicating copy to clipboard operation
pudb copied to clipboard

Settings doc

Open wronglink opened this issue 8 years ago • 12 comments
trafficstars

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

wronglink avatar Apr 14 '17 21:04 wronglink

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 avatar Apr 14 '17 22:04 inducer

@asmeurer, opinions?

inducer avatar Apr 14 '17 22:04 inducer

I guess that came from the discussion at https://github.com/inducer/pudb/pull/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.

asmeurer avatar Apr 14 '17 22:04 asmeurer

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)

wronglink avatar Apr 15 '17 11:04 wronglink

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

asmeurer avatar Apr 15 '17 17:04 asmeurer

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

wronglink avatar Apr 25 '17 20:04 wronglink

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

wronglink avatar Apr 30 '17 16:04 wronglink

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.

inducer avatar May 04 '17 01:05 inducer

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?

wronglink avatar May 05 '17 10:05 wronglink

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 avatar May 05 '17 15:05 inducer

https://en.wikipedia.org/wiki/Comparison_of_American_and_British_English specifically.

inducer avatar May 05 '17 15:05 inducer

@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?

wronglink avatar May 07 '17 16:05 wronglink