Skip to content

Commit 8bead75

Browse files
committed
Add doc
1 parent 32ad6f9 commit 8bead75

10 files changed

Lines changed: 593 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ AUR
99
htmlcov
1010
benchmark.py
1111
stats.txt
12+
_build

README.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ filebrowser and the following functions, similar to the one in filedialog:
2121
* `askopendirnames` that allow the selection of multiple folders
2222

2323
* `asksaveasfilename` that returns a single filename and give a warning if the file already exists
24+
25+
26+
The documentation is also available here: https://tkfilebrowser.readthedocs.io
27+
28+
.. contents:: Table of Contents
29+
2430

2531
Requirements
2632
------------
@@ -48,9 +54,9 @@ Installation
4854

4955
- With pip:
5056

51-
::
57+
::
5258

53-
$ pip install tkfilebrowser
59+
$ pip install tkfilebrowser
5460

5561

5662
Documentation

docs/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = .
8+
BUILDDIR = _build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/changelog.rst

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
Changelog
2+
=========
3+
4+
tkfilebrowser 2.2.5
5+
-------------------
6+
7+
* Add compatibility with Tk < 8.6.0 (requires PIL.ImageTk)
8+
* Add desktop icon in shortcuts
9+
10+
tkfilebrowser 2.2.4
11+
-------------------
12+
* Fix bug in desktop folder identification
13+
14+
tkfilebrowser 2.2.3
15+
-------------------
16+
17+
* Fix FileNotFoundError if initialdir does not exist
18+
* Add Desktop in shortcuts (if found)
19+
* Improve filetype filtering
20+
21+
tkfilebrowser 2.2.2
22+
-------------------
23+
24+
* Fix ValueError in after_cancel with Python 3.6.5
25+
26+
tkfilebrowser 2.2.1
27+
-------------------
28+
29+
* Fix __main__.py for python 2
30+
31+
tkfilebrowser 2.2.0
32+
-------------------
33+
34+
* Use babel instead of locale in order not to change the locale globally
35+
* Speed up (a little) folder content display
36+
* Improve example: add comparison with default dialogs
37+
* Add select all on Ctrl+A if multiple selection is enabled
38+
* Disable folder creation button if the user does not have write access
39+
* Improve extension management in save mode
40+
41+
tkfilebrowser 2.1.1
42+
-------------------
43+
44+
* Fix error if LOCAL_PATH does not exists or is not writtable
45+
46+
tkfilebrowser 2.1.0
47+
-------------------
48+
49+
* Add compatibility with tkinter.filedialog keywords 'master' and 'defaultextension'
50+
* Change look of filetype selector
51+
* Fix bugs when navigating without displaying hidden files
52+
* Fix color alternance bug when hiding hidden files
53+
* Fix setup.py
54+
* Hide suggestion drop-down when nothing matches anymore
55+
56+
tkfilebrowser 2.0.0
57+
-------------------
58+
59+
* Change package name to tkfilebrowser to respect PEP 8
60+
* Display error message when an issue occurs during folder creation
61+
* Cycle only through folders with key browsing in "opendir" mode
62+
* Complete only with folder names in "opendir" mode
63+
* Fix bug: grey/white color alternance not always respected
64+
* Add __main__.py with an example
65+
* Add "Recent files" shortcut
66+
* Make the text of the validate and cancel buttons customizable
67+
* Add possibility to disable new folder creation
68+
* Add python 2 support
69+
* Add horizontal scrollbar
70+
71+
tkFileBrowser 1.1.2
72+
-------------------
73+
74+
* Add tooltips to display the full path of the shortcut if the mouse stays long enough over it.
75+
* Fix bug: style of browser treeview applied to parent
76+
77+
tkFileBrowser 1.1.1
78+
-------------------
79+
80+
* Fix bug: key browsing did not work with capital letters
81+
* Add specific icons for symlinks
82+
* Add handling of symlinks, the real path is returned instead of the link path
83+
84+
tkFileBrowser 1.1.0
85+
-------------------
86+
87+
* Fix bug concerning the initialfile argument
88+
* Add column sorting (by name, size, modification date)
89+
90+
tkFileBrowser 1.0.1
91+
-------------------
92+
93+
* Set default filebrowser parent to None as for the usual filedialogs and messageboxes.
94+
95+
tkFileBrowser 1.0.0
96+
-------------------
97+
98+
* Initial version

docs/conf.py

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
# import os
16+
# import sys
17+
# sys.path.insert(0, os.path.abspath('.'))
18+
19+
20+
# -- Project information -----------------------------------------------------
21+
22+
project = 'tkfilebrowser'
23+
copyright = '2018, Juliette Monsel'
24+
author = 'Juliette Monsel'
25+
26+
# The short X.Y version
27+
version = ''
28+
# The full version, including alpha/beta/rc tags
29+
release = '2.2.5'
30+
31+
32+
# -- General configuration ---------------------------------------------------
33+
34+
# If your documentation needs a minimal Sphinx version, state it here.
35+
#
36+
# needs_sphinx = '1.0'
37+
38+
# Add any Sphinx extension module names here, as strings. They can be
39+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40+
# ones.
41+
extensions = [
42+
]
43+
44+
# Add any paths that contain templates here, relative to this directory.
45+
templates_path = ['_templates']
46+
47+
# The suffix(es) of source filenames.
48+
# You can specify multiple suffix as a list of string:
49+
#
50+
# source_suffix = ['.rst', '.md']
51+
source_suffix = '.rst'
52+
53+
# The master toctree document.
54+
master_doc = 'index'
55+
56+
# The language for content autogenerated by Sphinx. Refer to documentation
57+
# for a list of supported languages.
58+
#
59+
# This is also used if you do content translation via gettext catalogs.
60+
# Usually you set "language" from the command line for these cases.
61+
language = None
62+
63+
# List of patterns, relative to source directory, that match files and
64+
# directories to ignore when looking for source files.
65+
# This pattern also affects html_static_path and html_extra_path .
66+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
67+
68+
# The name of the Pygments (syntax highlighting) style to use.
69+
pygments_style = 'sphinx'
70+
71+
72+
# -- Options for HTML output -------------------------------------------------
73+
74+
# The theme to use for HTML and HTML Help pages. See the documentation for
75+
# a list of builtin themes.
76+
#
77+
html_theme = 'sphinx_rtd_theme'
78+
79+
# Theme options are theme-specific and customize the look and feel of a theme
80+
# further. For a list of options available for each theme, see the
81+
# documentation.
82+
#
83+
# html_theme_options = {}
84+
85+
# Add any paths that contain custom static files (such as style sheets) here,
86+
# relative to this directory. They are copied after the builtin static files,
87+
# so a file named "default.css" will overwrite the builtin "default.css".
88+
html_static_path = ['_static']
89+
90+
# Custom sidebar templates, must be a dictionary that maps document names
91+
# to template names.
92+
#
93+
# The default sidebars (for documents that don't match any pattern) are
94+
# defined by theme itself. Builtin themes are using these templates by
95+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
96+
# 'searchbox.html']``.
97+
#
98+
# html_sidebars = {}
99+
100+
101+
# -- Options for HTMLHelp output ---------------------------------------------
102+
103+
# Output file base name for HTML help builder.
104+
htmlhelp_basename = 'tkfilebrowserdoc'
105+
106+
107+
# -- Options for LaTeX output ------------------------------------------------
108+
109+
latex_elements = {
110+
# The paper size ('letterpaper' or 'a4paper').
111+
#
112+
# 'papersize': 'letterpaper',
113+
114+
# The font size ('10pt', '11pt' or '12pt').
115+
#
116+
# 'pointsize': '10pt',
117+
118+
# Additional stuff for the LaTeX preamble.
119+
#
120+
# 'preamble': '',
121+
122+
# Latex figure (float) alignment
123+
#
124+
# 'figure_align': 'htbp',
125+
}
126+
127+
# Grouping the document tree into LaTeX files. List of tuples
128+
# (source start file, target name, title,
129+
# author, documentclass [howto, manual, or own class]).
130+
latex_documents = [
131+
(master_doc, 'tkfilebrowser.tex', 'tkfilebrowser Documentation',
132+
'Juliette Monsel', 'manual'),
133+
]
134+
135+
136+
# -- Options for manual page output ------------------------------------------
137+
138+
# One entry per manual page. List of tuples
139+
# (source start file, name, description, authors, manual section).
140+
man_pages = [
141+
(master_doc, 'tkfilebrowser', 'tkfilebrowser Documentation',
142+
[author], 1)
143+
]
144+
145+
146+
# -- Options for Texinfo output ----------------------------------------------
147+
148+
# Grouping the document tree into Texinfo files. List of tuples
149+
# (source start file, target name, title, author,
150+
# dir menu entry, description, category)
151+
texinfo_documents = [
152+
(master_doc, 'tkfilebrowser', 'tkfilebrowser Documentation',
153+
author, 'tkfilebrowser', 'One line description of project.',
154+
'Miscellaneous'),
155+
]
156+
157+
158+
# -- Options for Epub output -------------------------------------------------
159+
160+
# Bibliographic Dublin Core info.
161+
epub_title = project
162+
163+
# The unique identifier of the text. This can be a ISBN number
164+
# or the project homepage.
165+
#
166+
# epub_identifier = ''
167+
168+
# A unique identification for the text.
169+
#
170+
# epub_uid = ''
171+
172+
# A list of files that should not be packed into the epub file.
173+
epub_exclude_files = ['search.html']

0 commit comments

Comments
 (0)