Skip to content
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

Style/add ruff #149

Closed
wants to merge 49 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
5b909ea
refactor: pyproject.toml
Jerakin Feb 21, 2024
ff0b7e7
refactor: moved all files
Jerakin Feb 21, 2024
38b7193
fix: tests using src directory
Jerakin Feb 21, 2024
bf19c6f
fix: template folder
Jerakin Feb 21, 2024
1002b5b
fix: update static urls to use dynamic values
Jerakin Feb 21, 2024
fe86ffd
cicd: docker and cicd fixes
Jerakin Feb 21, 2024
5cc398e
chore: remove libs that are not explicitly used by the project
Jerakin Feb 21, 2024
eb99ccb
fix: ignore plugin generated files
Jerakin Feb 21, 2024
f310a94
fix: clean up tests
Jerakin Feb 21, 2024
4088ac6
chore: add ruff tool chain config
Jerakin Feb 21, 2024
c7db997
feat: keep wiki template as a separate folder and copy it over if i…
Jerakin Feb 21, 2024
43abeb4
fix: error in refactor move
Jerakin Feb 21, 2024
b1fdce9
fix: template path fix
Jerakin Feb 23, 2024
02a0fed
doc: update docker build instruction
Jerakin Feb 25, 2024
e7b4058
fix: default update locations
Jerakin Feb 25, 2024
3789595
fix: image fetching
Jerakin Feb 25, 2024
9dc65bc
fix: moved wiki template folder
Jerakin Feb 25, 2024
a5f9def
fix: force project root as base of template and static folder
Jerakin Feb 25, 2024
022c2bb
fix: add the extra data when building the app
Jerakin Feb 25, 2024
9a84342
docs: updated documentation
Jerakin Feb 25, 2024
ed616c8
test: wiki template path within the test
Jerakin Feb 25, 2024
fa459b3
cicd: updated dockerfile to build and setup image correctly
Jerakin Feb 25, 2024
be7842d
fix: add default draw to built page
Jerakin Feb 25, 2024
a0c7f5f
fix: allow space within file name
Jerakin Feb 25, 2024
4d5c12c
fix: allowed and disallowed file names
Jerakin Feb 27, 2024
a44546d
Merge pull request #2 from Jerakin/fix/error-in-file-names
Jerakin Feb 29, 2024
7a68758
feat: build multiple platforms
Jerakin Feb 21, 2024
6d2de2e
Merge pull request #3 from Jerakin/feature/multi-platform-docker-image
Jerakin Feb 29, 2024
8c16efa
fix: use uri for search
Jerakin Feb 23, 2024
2ff6bcd
Merge pull request #4 from Jerakin/fix/use-uri-for-search
Jerakin Feb 29, 2024
bcfcc71
style: format update
Jerakin Feb 22, 2024
2380e45
Merge pull request #5 from Jerakin/style/update-formatting
Jerakin Feb 29, 2024
c57c2c7
refactor: split the routes into different function
Jerakin Feb 22, 2024
ee4a54b
Merge pull request #6 from Jerakin/refactor/split-routes
Jerakin Feb 29, 2024
3dffa9a
simplified plugin usage
Jerakin Feb 22, 2024
168b8d3
Merge pull request #7 from Jerakin/refactor/simplified-plugin-usage
Jerakin Feb 29, 2024
f98a6f5
refactor the draw plugin
Jerakin Feb 27, 2024
58de0d4
Merge pull request #8 from Jerakin/plugins/refactor-draw-plugin
Jerakin Feb 29, 2024
3fedb6b
refactor: store page title and content in a class
Jerakin Feb 23, 2024
36c9b51
Merge pull request #9 from Jerakin/refactor/form-content
Jerakin Feb 29, 2024
4d45c21
feat: left side navbar
Jerakin Feb 19, 2024
c2135a7
fix: simplify list view
Jerakin Feb 26, 2024
52f37c0
Merge pull request #10 from Jerakin/feat/sidebar
Jerakin Feb 29, 2024
b13e5a5
Use suffix on file name
Jerakin Feb 23, 2024
ba2f4a6
Merge pull request #11 from Jerakin/feature/use-suffix
Jerakin Feb 29, 2024
f70bb2b
fix: made the navbar more inline with how other websites are doing it
Jerakin Feb 25, 2024
3dc557e
Merge pull request #12 from Jerakin/fix/css-style-tweaks
Jerakin Feb 29, 2024
550ed0d
docker: dockerhub name
Jerakin Feb 29, 2024
99f7111
srtyle: add ruff to the project
Jerakin Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: image fetching
Jerakin committed Feb 29, 2024
commit 3789595651d46cec152f80a1a4aaffed945426ca
4 changes: 2 additions & 2 deletions src/wikmd/wiki.py
Original file line number Diff line number Diff line change
@@ -470,11 +470,11 @@ def nav_id_to_page(id):
return redirect("/")


@app.route(os.path.join("/", cfg.images_route, "<path:image_name>"))
@app.route(f"/{cfg.images_route}/<path:image_name>")
def display_image(image_name):
image_path = safe_join(UPLOAD_FOLDER_PATH, image_name)
try:
response = send_file(image_path)
response = send_file(Path(image_path).resolve())
except Exception:
app.logger.error(f"Could not find image: {image_path}")
return ""