| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we used packages as the top level keys and fields
contained the url and the symbol id, however if we want to store
all symbols from fetched pages instead of only the ones that were
fetched by the users this comes worse off than using the page url
in the field and setting EXPIREs for them instead of doing it manually
in python.
The new implementation uses package:url as the redis key and only
the symbol id for field names, with the expire being set to a week
on the key, this means we have to pattern match the keys when deleting
the cache for a package but that's being done far less than the expire
checking done previously.
|
| |
|
|
|
|
| |
The result of _split_parameters is only iterated over, so a list is not
needed. Making it lazy may also save some time in cases where we don't
use all parameters
|
| |
|
|
|
| |
The two variables were initialized and cleared together and contained
related information
|
| |
|
|
|
|
|
| |
Previously the code assumed ' and " can be used interchangeably,
and strings that were inside of brackets were ignored for depth but
their contents weren't causing strings like "ab[cd" to increase the
depth
|
| | |
|
| |
|
|
| |
Co-authored-by: MarkKoz <[email protected]>
|
| |
|
|
| |
Co-authored-by: MarkKoz <[email protected]>
|
| |
|
|
| |
Co-authored-by: MarkKoz <[email protected]>
|
| |
|
|
|
| |
A newline was also added to set to keep it consistent with
set_if_exists
|
| |
|
|
|
|
|
| |
Some packages (currently only python) should be prioritised to others,
the previous cleanup didn't account for other packages loading before it
which resulted in duplicate symbols getting the python prefix and the
original symbols linking to most probably undesired pages
|
| |
|
|
| |
We also clear the cache when removing a package
|
| |
|
|
|
|
| |
If we're parsing a page for a symbol that's out of the cache
and encounter a symbol that was already cached we can update that symbol
to keep it up to date without additional requests
|
| |
|
|
|
|
|
|
| |
This rework requires us to delete packages caches easily with
deleting the package hash instead of having to pattern match all
keys and delete those.
The interface was also updated to accept DocItems instead of requiring
callers to construct the keys
|
| | |
|
| |
|
|
|
| |
Group name interning was also moved to the DocItem creation
to group the behaviour
|
| | |
|
| |
|
|
|
|
|
| |
With redis we need to make sure we don't send the "error"
string into the cache, returning None instead of the string
and then setting it manually in the caller makes this nicer
compared to checking against a string
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\
| |
| |
| |
| |
| | |
# Conflicts:
# LICENSE-THIRD-PARTY
# bot/exts/info/doc.py
|
| | |\
| | |
| | |
| | |
| | | |
python-discord/sebastiaan/bugs/codeblock-language-detection
Detect codeblock language specifiers with special characters
|
| | | |\
| | |/
| |/| |
|
| | |\ \
| | | |
| | | | |
New guilds tag
|
| | | | |
| | | |
| | | | |
Not to sure of the title to give it but I think the content is a bit more in line with the servers other tags
|
| | | | | |
|
| | | |\ \ |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |\ \ \ \
| | | | | |
| | | | | | |
CI: avoid failing whole job if a cache task fails
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Restoring from cache is non-critical. The CI can recover if cache tasks
fail.
|
| | | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The regex we use to detect codeblocks did not recognize language
specifiers that use a dash, a plus, or a dot in their name. As there are
valid language specifiers, such as python-repl and c++, that use those
characters, I've changed the regex to reflect that.
The character set used now reflects the characters used in language
specifiers in highlight.js.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | |\ \ \ \
| | | | | |
| | | | | | |
```py convention in code block instructions
|
| | | |\ \ \ \
| | |/ / / /
| |/| | | | |
|
| | |\ \ \ \ \
| | | | | | |
| | | | | | | |
Updated langs to include python-repl
|
| | | | | | | | |
|
| | | | | | | | |
|
| | |\ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
PEP command improvements
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | |\ \ \ \ \ \ |
|
| | | |\ \ \ \ \ \ \ |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|