Comments (3)
Hello, I'd be interested in picking this one up as a first issue.
I've been thinking about the approach and I have setup a little demo repo where I have created a dummy API and have then followed the automatic code reference pages recipe in the mkdocstrings
docs. You can check out the results in the pages site linked in the README file.
I'm sure there might be some discussion to be had on what's included automatically, whether you might want to exclude things to avoid clutter. I'm guessing some amendments to this script would be needed for that but it would require a little experiment once I have an idea what you want.
What is displayed and what isn't can be tightly controlled by following the Usage section of mkdocstrings
docs although this won't be automated so will create a little more burden on development and potential for gaps. It could however be used to try and model the look and feel that is wanted from the auto-generated API.
Just a couple of other clarifying points:
- What name would you want to give the top level of the Nav? "API Reference" or "API"?
- Would you want it at the bottom of the existing Nav headers?
Look forward to hearing your thoughts.
from dynaconf.
I guess the documentation should appear on the left menu as Reference > API https://www.dynaconf.com/api
from dynaconf.
Other good candidates for a reference sections are:
- dynaconf module API (
Validator
,inspect_settings
,get_history
, and others explicitly exposed utilities) - The actual CLI page, which contains mostly the CLI API description. There are some usage examples, but mkdocstrings allows interleaving manual entries with generated entries via some custom markup.
- The actual Configuration page (but it would require some code changes, so the plugin can parse descriptions and types. Could be tricky).
from dynaconf.
Related Issues (20)
- Merging doesn't appear to work with load_file method but does with settings=[] in the constructor
- [bug] Django and Dynaconf: Can't merge INSTALLED_APPS from external settings_file into settings.py HOT 2
- [RFC] add `@get` converter HOT 3
- Improve documentation on cast and default HOT 3
- [bug] Deleting entry raises an error
- [RFC] Pydantic Schema Validation HOT 3
- Centralized config package | External hooks for `platformdirs`, __package__, package_dir, etc. HOT 1
- [bug] Environment Variable Overrides Not Working with Nested .toml Values HOT 1
- [bug] Dynaconf.load_file() no error on missing file(s)
- Documentation used to be clear on purpose of global, and the default environment HOT 2
- Multiple cast validators get discarded
- Broken link to source code in docs HOT 1
- Standard docstrings style for the codebase HOT 3
- Validator default string parsed to number HOT 3
- [bug] Validation on Dynaconf instantiation not working HOT 1
- Validation doc section "On instantiation" improvement HOT 2
- [CI] New release process HOT 2
- [RFC] Add `as_dict` alias to `to_dict` for `DynaBox` for consistency between `LazySettings` and `DynaBox` objs HOT 1
- [CI] Update codecov configuration file
- [RFC] Add FORCE_SETTINGS_FILES to LazySettings.configure() for pytest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynaconf.