24 Commits

Author SHA1 Message Date
Will McGugan
27b1b06f36 tweaks 2024-07-18 09:50:36 +01:00
Will McGugan
5b32e19d40 better API docs 2024-07-17 21:27:36 +01:00
Will McGugan
e2739be4f3 docs tweaks 2024-07-17 13:34:00 +01:00
Will McGugan
305ac3853d show update time 2024-05-14 17:15:05 +01:00
Will McGugan
a2a6f56cec docs fix (#3841) 2023-12-09 12:12:46 +00:00
Will McGugan
7a9019adb1 add our new logo (#3500) 2023-10-10 15:36:28 +01:00
Joe H. Rahme
4f67432b9f Fix a broken link in the documentation guide
The link in the doc[1] is not rendering properly,
because the method `textual.app.App.compose`
is ignored in the doc in the filter[2]. This commit
overrides the filter in the app.md file, generating
the doc for the "protocol" method and fixing the
link rendering in the guide.

[1]: https://textual.textualize.io/guide/app/#composing
[2]: textual/mkdocs-common.yml

Fix #3141
2023-10-04 23:34:20 +02:00
Dave Pearson
e459be0b85 Add footnotes to the config
How the heck did we ever get by without footnotes on?!?
2023-10-04 11:47:31 +01:00
Will McGugan
64703c04dd interactive examples (#3418)
* interactive examples

* words

* remove log
2023-09-29 15:23:42 +01:00
Will McGugan
1db9ecb302 Update Collapsible (#3305)
* Update Collapsible

* snapshot tests

* word

* Update docs/widgets/collapsible.md

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update docs/widgets/collapsible.md

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* simplify render

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-09-14 16:26:41 +01:00
Rodrigo Girão Serrão
fbe1c416a4 Hide some members from the public docs. (#3080)
* Hide some members from the public docs.

See relevant issue: #3076.
Some methods need to be implemented to make the widget work but the user doesn't really care about them. For that matter, we can hide them from the public documentation.

* Use private handler to hide from docs.

Related comments: https://github.com/Textualize/textual/pull/3080#issuecomment-1671129733
2023-08-15 16:53:14 +01:00
Dave Pearson
d4eb0a0c20 Only link Python and Rich types when building full docs
It looks like mkdocstrings will fail out if it can't download the inv files.
Unless there's a setting where you can tell it "try, but if you can't grab
them just don't try and create links" the approach here seems reasonable and
has the same effect.

https://github.com/Textualize/textual/issues/2629#issuecomment-1566672594
for reference.
2023-05-29 08:30:23 +01:00
Rodrigo Girão Serrão
01d67173e8 Don't expose snippets publically. (#2300) 2023-04-18 10:19:43 +01:00
Will McGugan
6c958a1140 docs update (#2239)
* docs update

* class template

* no annotations in sig
2023-04-07 18:57:56 +01:00
Dave Pearson
aad6d98aa5 More documentation tweaks (#2001)
* Change the title of some widget references to their class names

The widget reference index had a slight mixture of widget title styles, some
being their class name, others being "written English" type titles. This
settles on the titles always being the class name.

* Add a link to the ContentSwitcher to the widget gallery

No screenshot for this, on purpose. By definition this widget isn't visible,
except via other widgets that it's enclosing and handling.

* Have mkdocs watch the main nav file

* Mark the content switcher off the roadmap
2023-03-09 14:01:48 +00:00
Dave Pearson
928ab661f7 Don't watch the generated mkdocs configs (#1985)
I got a bit carried away with what to watch, and it looks like the mkdocs
watch plugin doesn't much care for watching for files that don't exist but
may.
2023-03-08 17:41:40 +00:00
Dave Pearson
e6e9d2b698 Add all the mkdocs config files to the reload-watcher
When I made the changes to documentation generation I split up the then
single mkdocs configuration file. It looks like the reloader for mkdocs
always watches its configuration file, bit *only* the one that was loaded in
the first place, not any that are inherited from.

So this change adds all of the mkdocs yml files to the watch list to ensure
that any change causes the documentation server to reload.

Most useful if you're adding new files to the navigation.
2023-03-08 08:36:22 +00:00
Dave Pearson
9fa10ecc18 Interlink the docs with the Python and Rich manuals
All through our docs there are mentions of Python types and also Rich types.
This change will make the vast majority of mentions of them into actual
links that people can follow. So now, for example, when someone sees a
method that returns a `Style`, they can click on it and see what a `Style`
actually is.
2023-03-01 15:42:38 +00:00
Dave Pearson
fb5346c894 Don't show the repository stats in offline mode
They require a connection, which isn't very offline...
2023-02-08 08:40:47 +00:00
Dave Pearson
19bde351a6 Get search appearing again
Search had gone from everywhere. Turns out that there's a very particular
way you have to specify the plugins in YAML if you want to use INHERIT.
2023-02-07 10:52:46 +00:00
Dave Pearson
a8aaa7ad82 Experiment with the mkdocs offline plugin
In doing so, don't emphasise online docs over offline, but instead make this
about an online/offline split and both are as important as each other.
2023-02-07 10:06:05 +00:00
Dave Pearson
a8ded8f0a6 Move some more live-site config into the correct config file 2023-02-06 14:28:13 +00:00
Dave Pearson
dcdad6230f Move the blog config out into the "live site" config 2023-02-06 13:58:15 +00:00
Dave Pearson
6951ff5e60 Move almost all of the docs config into a "common" file
With #631 in mind, start by moving the vast bulk of the documentation
configuration into a "common" file, and just keep the `nav` in the main
configuration file. The thinking here is that I want two entry points -- one
for building the full docs for the Textual website, and one for building a
local version of the docs.

Because mkdocs doesn't allow for inheriting a configuration and also
splicing into the `nav`, we'll be looking to duplicate the `nav` for now --
this will likely change eventually as that'll be a maintenance overhead that
we don't really want (will likely look at templating it or something). For
now though, let's look at the best way of splitting things up and seeing how
we can generate two different versions of the docs.
2023-02-06 13:29:49 +00:00