-
Notifications
You must be signed in to change notification settings - Fork 15
docs: reexport storages documentation from crawlee-python
#328
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cc613a3
docs: bump the docusaurus plugin
barjin cfe0816
docs: reexport storages documentation from `crawlee-python`
barjin 7b2c453
chore: run formatter
barjin 93dffc4
chore: run ruff
barjin 0d03380
chore: run ruff some more
barjin a28f569
chore: remove traces of `yarn`
barjin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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 |
---|---|---|
@@ -1,39 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# On macOS, sed requires a space between -i and '' to specify no backup should be done | ||
# On Linux, sed requires no space between -i and '' to specify no backup should be done | ||
sed_no_backup() { | ||
if [[ $(uname) = "Darwin" ]]; then | ||
sed -i '' "$@" | ||
else | ||
sed -i'' "$@" | ||
fi | ||
} | ||
|
||
# Create docspec dump of this package's source code through pydoc-markdown | ||
python ./pydoc-markdown/generate_ast.py > docspec-dump.jsonl | ||
sed_no_backup "s#${PWD}/..#REPO_ROOT_PLACEHOLDER#g" docspec-dump.jsonl | ||
|
||
# Create docpec dump from the right version of the apify-shared package | ||
apify_shared_version=$(python -c "import apify_shared; print(apify_shared.__version__)") | ||
apify_shared_tempdir=$(realpath "$(mktemp -d)") | ||
git clone --quiet https://github.com/apify/apify-shared-python.git "${apify_shared_tempdir}" | ||
cp ./pydoc-markdown.yml "${apify_shared_tempdir}/pydoc-markdown.yml" | ||
sed_no_backup "s#search_path: \[../src\]#search_path: \[./src\]#g" "${apify_shared_tempdir}/pydoc-markdown.yml" | ||
|
||
( | ||
cd "${apify_shared_tempdir}"; | ||
git checkout --quiet "v${apify_shared_version}"; | ||
pydoc-markdown --quiet --dump > ./apify-shared-docspec-dump.jsonl | ||
) | ||
|
||
cp "${apify_shared_tempdir}/apify-shared-docspec-dump.jsonl" . | ||
sed_no_backup "s#${apify_shared_tempdir}#REPO_ROOT_PLACEHOLDER#g" apify-shared-docspec-dump.jsonl | ||
|
||
rm -rf "${apify_shared_tempdir}" | ||
|
||
# Generate import shortcuts from the modules | ||
python generate_module_shortcuts.py | ||
|
||
# Transform the docpec dumps into Typedoc-compatible docs tree | ||
node transformDocs.js |
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.
Uh oh!
There was an error while loading. Please reload this page.