-
-
Couldn't load subscription status.
- Fork 2.7k
feat: converting documentation to mkdocs #5276
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
Draft
+579,534
−441,279
Draft
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
a2787a0
- Move contents of `commands.py` to scripts in new `bin` directory an...
gvwilson 3dced44
preload _plotly_utils
LiamConnors bc32c86
add docstrings directly to px functions
LiamConnors 174b0e9
change docstring style
LiamConnors badb199
Merge pull request #5292 from plotly/plotly.express-docstrings
gvwilson 86f69f1
Merge branch 'mkdocs-conversion' into preload-plotly-utils
gvwilson c0237f6
Merge pull request #5290 from plotly/preload-plotly-utils
gvwilson 76b36dd
feat: numpy documentation style
gvwilson 96af9f6
feat: regenerating Python code with .js fixes
gvwilson 9525f6a
feat: converting doc/python/*.md using bin/run_markdown.py
gvwilson 80792d8
better verbosity
gvwilson 9386750
feat: conditionalize Makefile target for testing
gvwilson 36b21ab
add missing imports and variable definitions
LiamConnors 6d1e5c8
Merge remote-tracking branch 'origin/fix-docs' into mkdocs-conversion
gvwilson 20c60ef
Merge remote-tracking branch 'origin/add-missing-imports' into mkdocs...
gvwilson a07ea45
feat: script to check all examples in doc/python.
gvwilson 5cad013
use _parse_md function
LiamConnors 2e38a9a
don't process code block in region sections
LiamConnors e45f54c
Merge pull request #5307 from plotly/update-script
gvwilson 73a8291
modify tests to import from graph_objects
gvwilson 36ee5e9
add trivial test to make sure plotly.graph_objects import works
gvwilson 57d923c
updating notes
gvwilson ca37382
swapping graph_objs and graph_objects
gvwilson 31b73ce
Added backslashes to descriptions with '[][]'
daexs fae9563
Fixed markdown formatting for valType 'info_array'
daexs c2e20c7
Added backslashes to descriptions with '[][]'
daexs 0f9b311
Fixed markdown formatting for valType 'info_array'
daexs 3f5ee9f
regenerating with latest changes
gvwilson f345aef
Fixed double bracket error for regular expressions
daexs f840f11
Minor code cleanup
daexs 4a7873c
Fixed double bracket error in 'basedatatypes.py'
daexs b0cd2f9
Merge branch 'mkdocs-conversion' of https://github.com/plotly/plotly....
daexs cd623aa
Regenerated code after basevalidators.py changes
daexs 98fab98
Fix SyntaxWarning and adjusted valType 'enumerated' docstring format.
daexs 9ddde0f
Fixed formatting issues with nested enumerated docstrings in info_arr...
daexs 683643c
Fixed list format in 'Dash' and 'String' properties.
daexs efde201
Fixed formatting for 'Compound' and 'color' properties.
daexs 01da1c6
Fixed formatting for 'Integer' types.
daexs 8d12a05
Fixed formatting for 'Colorscale', 'CompoundArray', and 'BaseData' ty...
daexs 6690116
Fixed confusing indentation & some formatting
daexs 4154910
Fixed formatting issues and consistency
daexs df9cc3a
feat: allow `--schema path` option to code generation
gvwilson 77d19bb
Merge pull request #17 from gvwilson/mkdocs-conversion
daexs bdd049b
Fixed code block and type annotation formatting.
daexs cbd983d
Minor code cleanup
daexs 95ea818
Fixed example parsing error
daexs 31c8a2f
Fixed formatting issues and modified json file for double bracket error.
daexs f35c9fa
Fixed **kwargs bold formatting issue
daexs eef950e
Fixed types for parameters 'annotation', 'annotation_position', and '...
daexs e339098
Merge branch 'main' into mkdocs-conversion
gvwilson 3e5ee8b
Merge branch 'main' into mkdocs-conversion
gvwilson a943429
saving generated example files
gvwilson 569b6d7
feat: build YAML table of contents for examples
gvwilson 6d2f32f
fix: switch to relative paths in examples
gvwilson dc0418a
feat: fixing some dangling references in doc/python example files
gvwilson 66208c6
Added pages to nav bar and extra css styling
daexs d116e27
Fixed warnings and errors
daexs 8607d4a
feat: allow bin/run_markdown.py to take a single block number for tes...
gvwilson 9a40907
Fixed small import and missing module errors
daexs b215b37
Fixed small missing import and variable errors. Also added 'getting-s...
daexs 1847061
Added permalinks to replace empty md files
daexs 9da9b2d
Fixed Image not JSON serializable error
daexs 883c0d9
Edited comment for clarity
daexs 63882d0
Fixed deprecation warning for 'type' found when county-choropleth.md ...
daexs 7e8a638
Fixed 403 Error from Wikimedia when reading image
daexs 77e76af
Made variable state shared across codeblocks and cleaned up previous ...
daexs 1d1620c
Fixed html image rendering and reading image from wikimedia
daexs 2310f66
Replaced image rendering from IPython's image display and overrided P...
daexs a673e59
Fixed pip install invalid syntax error
daexs 0fa35da
Fixed some references and absolute links that were broken
daexs 842ad01
feat: filter content for mkdocstrings
gvwilson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Manage plotly.py project. | ||
|
|
||
| RUN = uv run | ||
| PACKAGE_DIRS = _plotly_utils plotly | ||
| CODE_DIRS = ${PACKAGE_DIRS} scripts | ||
| EXAMPLE_SRC = $(wildcard doc/python/*.md) | ||
| EXAMPLE_DST = $(patsubst doc/python/%.md,pages/examples/%.md,${EXAMPLE_SRC}) | ||
| MKDOCS_TEMP_DIR = ./docs_tmp | ||
|
|
||
| ## commands: show available commands | ||
| commands: | ||
| @grep -h -E '^##' ${MAKEFILE_LIST} | sed -e 's/## //g' | column -t -s ':' | ||
|
|
||
| ## docs: rebuild documentation | ||
| .PHONY: docs | ||
| docs: | ||
| ${RUN} mkdocs build | ||
|
|
||
| ## docs-lint: check documentation | ||
| docs-lint: | ||
| ${RUN} pydoclint ${PACKAGE_DIRS} | ||
|
|
||
| ## docs-tmp: rebuild documentation saving Markdown in ./tmp | ||
| docs-tmp: | ||
| @rm -rf ${MKDOCS_TEMP_DIR} | ||
| MKDOCS_TEMP_DIR=${MKDOCS_TEMP_DIR} ${RUN} mkdocs build | ||
|
|
||
| ## examples: generate Markdown for individual doc/python | ||
| examples: ${EXAMPLE_DST} | ||
|
|
||
| pages/examples/%.md: doc/python/%.md | ||
| @mkdir -p pages/examples | ||
| ${RUN} bin/run_markdown.py --outdir pages/examples --inline --verbose 2 $< | ||
|
|
||
| ## examples-force: force complete rebuild of examples | ||
| examples-force: | ||
| touch ${EXAMPLES_SRC} | ||
| make examples | ||
|
|
||
| ## examples-toc: generate YAML table of contents for examples | ||
| examples-toc: | ||
| @python bin/build_example_toc.py ${EXAMPLE_SRC} | ||
|
|
||
| ## format: reformat code | ||
| format: | ||
| ${RUN} ruff format ${CODE_DIRS} | ||
|
|
||
| ## generate: generate code | ||
| generate: | ||
| ${RUN} bin/generate_code.py --codedir plotly | ||
| ${RUN} ruff format plotly | ||
|
|
||
| ## lint: check the code | ||
| lint: | ||
| ${RUN} ruff check ${CODE_DIRS} | ||
|
|
||
| ## test: run tests | ||
| test: | ||
| ${RUN} pytest tests | ||
|
|
||
| ## updatejs: update JavaScript bundle | ||
| updatejs: | ||
| ${RUN} bin/updatejs.py --codedir plotly | ||
|
|
||
| ## --: -- | ||
|
|
||
| ## clean: clean up repository | ||
| clean: | ||
| @find . -name '*~' -delete | ||
| @find . -name '.DS_Store' -delete | ||
| @rm -rf .coverage | ||
| @rm -rf .pytest_cache | ||
| @rm -rf .ruff_cache | ||
| @rm -rf dist | ||
| @rm -rf docs | ||
| @rm -rf pages/examples | ||
|
|
||
| ## sync: update Python packages | ||
| sync: | ||
| uv sync --extra dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.