Commit graph

118 commits

Author SHA1 Message Date
Kumi
bee7319667 Merge pull request 'chore(deps): update docker/build-push-action action to v6' (#53) from renovate/docker-build-push-action-6.x into main
Reviewed-on: https://git.private.coffee/PrivateCoffee/wikimore/pulls/53
2025-03-04 17:35:03 +00:00
Kumi
90c028ca43 Merge branch 'main' into renovate/docker-build-push-action-6.x 2025-03-04 17:34:05 +00:00
Kumi
654cf3a101 Merge pull request 'chore(deps): update alpine docker tag to v3.21' (#50) from renovate/alpine-3.x into main
Reviewed-on: https://git.private.coffee/PrivateCoffee/wikimore/pulls/50
2025-03-04 17:14:04 +00:00
Renovate
df34ee2c2f chore(deps): update docker/build-push-action action to v6 2025-03-04 17:03:21 +00:00
Renovate
1666f734e1 chore(deps): update alpine docker tag to v3.21 2025-03-04 16:17:50 +00:00
Kumi
87caf27f95 Merge pull request 'chore: Configure Renovate' (#49) from renovate/configure into main
Reviewed-on: https://git.private.coffee/PrivateCoffee/wikimore/pulls/49
2025-03-04 16:13:12 +00:00
Renovate
84630fb06a Add renovate.json 2025-03-04 16:12:03 +00:00
Kumi
1861a72ce7
fix(docs): Update README table formatting
Standardizes whitespace and alignment across instance lists for improved readability.
2025-03-03 07:58:10 +01:00
Kumi
ed9efabecd
chore: Update instance listings & add JSON file
Refactors README instance tables by adding comment markers
to delineate clearnet and onion entries. Introduces a new
JSON file to centralize instance metadata.
2025-03-02 20:00:44 +01:00
Kumi
b3462039a2
feat(ci): migrate to Forgejo Docker registry
Updates CI/CD workflow to trigger on tag pushes and use Forgejo credentials
Renames login and push steps to reflect the new container registry
Modifies documentation and compose file to point to the updated image URL
2025-02-27 14:19:32 +01:00
Kumi
076869592c
fix: Update Docker login credentials
Replaces actor-based credentials with Forgejo secrets
to authenticate against the private registry.
2025-02-26 12:01:45 +01:00
Kumi
7cdb89c4be
fix: Update Docker workflow credentials
Switches Docker login to use actor and token for Forgejo actions.
2025-02-26 11:10:31 +01:00
Kumi
468ade3dee
feat: Adds local Docker CI/CD workflow
Configures a CI/CD pipeline to build and push Docker images to git.private.coffee.
Sets up dependencies, QEMU, Buildx, and authentication for seamless Docker operations.
2025-02-26 09:55:34 +01:00
Kumi
561618faaa
chore: update Docker command usage
Replaces deprecated Docker Compose command with updated syntax for clarity and consistency.
2025-02-26 09:26:41 +01:00
Kumi
dcb798450f
chore: add executable flag and bump version
Enables the entrypoint script by setting its executable permission in the Dockerfile,
ensuring proper container startup. Also updates the project version for the new release.
2025-02-26 09:15:11 +01:00
Kumi
68cc25148b
docs: add Russian mirror to service list
Introduces a new Russian mirror link to the service list in the
README, expanding the geographical diversity of available mirrors.

Fixes #48.
2025-02-03 13:16:19 +01:00
Kumi
88c5b2afc5
chore: Refines headers in README for consistency
Changes headers from level 2 to level 3 for section
uniformity, emphasizing consistent formatting throughout
the documentation. Enhances readability by following
document structure standards.
2025-01-31 09:54:08 +01:00
Kumi
71320b75e5
chore: Add Docker support to documentation
Introduces a Docker section in the README with instructions on
setting up Wikimore using Docker Compose, providing an
alternative to the standard installation method.

Updates .gitignore to exclude docker-compose.yml from version
control to prevent accidental configuration changes from being
tracked.
2025-01-31 09:52:28 +01:00
Kumi
a2f8284c55
feat: Refactors Docker setup to improve security and efficiency
Switches base image from Python to Alpine for a slimmer image and improved startup efficiency.

Uses a virtual environment for Python dependencies and adds a dedicated user for the application, enhancing security and environment isolation.

Introduces a new entrypoint script for better configuration of uWSGI server and updates Docker compose setup to include security options and resource limits. Removes old compose file in favor of a more secure configuration example.
2025-01-31 09:22:29 +01:00
Kumi
35664d986b
feat: Add Docker CI/CD workflow
Introduces a Docker CI/CD pipeline for automatic builds and
deployment to Docker Hub upon new tag pushes. Increments
project version from 0.1.8 to 0.1.9.
2025-01-31 09:13:38 +01:00
Kumi
51a251bcb8
Merge branch 'main' of git.private.coffee:privatecoffee/wikimore 2025-01-31 09:11:02 +01:00
Kumi
8653563957
feat: Improve category links in article pages
Enhances API request to include categories for articles and displays
categories with links on article pages. Aligns styling for category
links by updating CSS class names. This change improves article
navigation by providing users direct access to related categories.
2025-01-31 09:10:56 +01:00
Kumi
fe8792a4ef
feat: Updates README with new link
Adds wm2.bloat.cat to the list of projects based in Germany
for increased visibility and resource access.
2025-01-31 09:07:09 +01:00
Kumi
3e840f1643 Merge pull request 'Add Dockerfile and docker-compose' (#47) from blitzwing/wikimore:main into main
Reviewed-on: https://git.private.coffee/PrivateCoffee/wikimore/pulls/47
2025-01-08 07:12:43 +00:00
blitzwing
9e03f87afc Merge branch 'main' into main 2025-01-07 20:10:32 +00:00
blitzwing
9803f6a97b Add docker-compose.yml 2025-01-07 20:09:03 +00:00
blitzwing
de44c145e4 Add Dockerfile 2025-01-07 20:07:22 +00:00
Kumi
b0b3c3d3db
chore: bump version to 0.1.8
Updates project version from 0.1.7 to 0.1.8 for release
2024-12-06 08:35:50 +01:00
Kumi
de15cbdb75
feat: Enhances wiki article info fetching
Refactors to integrate fetching article info, badges, and interwiki links in a single request. Adds support to display category members and improves interwiki link processing by translating links where feasible. Adds error handling for interwiki processing. Updates HTML template to display category members.

Improves performance and reduces external requests, enhancing user navigation and data retrieval efficiency.

Fixes #19.
2024-12-06 08:35:28 +01:00
Kumi
4479a109b3
fix: Refines badge image styling
Adjusts CSS selector for badge images to enhance layout control.
Ensures badge images maintain consistent size across different elements.
2024-12-06 08:22:23 +01:00
Kumi
c702671243
chore: bump project version to 0.1.7
Updates the version from 0.1.6 to 0.1.7 to reflect recent changes or improvements made in the project.
2024-12-05 17:46:11 +01:00
Kumi
2167528f19
feat: Add badge support to wiki articles
Fetches and displays badges for articles using the MediaWiki API.
Updates templates to show badges as icons linking to detailed info.
Adds CSS styling for badge presentation in the article view.

Enhances user experience by providing additional context through
quick-access badge information.

Fixes #21.
2024-12-05 17:45:47 +01:00
Kumi
5bd90742b0
feat: Enhances readability with country flags
Adds emoji flags next to country names to improve
visual clarity and usability in the instances list.

Improves user understanding of instance locations.
2024-12-05 17:15:59 +01:00
Kumi
5d35208968
chore: bump version to 0.1.6
Updates the project version from 0.1.5 to 0.1.6 in the pyproject.toml file. This version increment likely signifies minor changes, improvements, or bug fixes in the project.
2024-12-05 13:27:49 +01:00
Kumi
cfc88a5c4e
feat: Enhances language sorting and interwiki feature
Adds functionality to sort languages by user activity with overriding via environment variables.
Implements fetching and integration of interwiki links using the MediaWiki API.
Introduces UI elements for language selection with new styling.

Improves user experience by prioritizing more active languages and providing easy navigation via interwiki links.

Fixes #45
2024-12-05 13:25:41 +01:00
Kumi
01b63f7a82
feat: Enhances image loading with lazy loading
Adds lazy loading attribute to images to improve page load
performance and user experience by deferring the loading
of images until they are in the viewport.

Fixes #44.
2024-12-04 14:45:54 +01:00
Kumi
7715094173
feat(README): Enhances documentation with new instances and guidance
Adds new public and Tor hidden service instances to the instances
section, including a new entry for Darkness.services.

Introduces sections for Tor Hidden Services and instructions
for adding new instances via pull requests or issues.

Enhances user support by detailing how to open issues or
provide feedback through Git or Github, and promotes
community engagement via a Matrix room.
2024-11-25 09:04:49 +01:00
Kumi
28852e812c
Merge branch 'main' of git.private.coffee:privatecoffee/wikimore 2024-11-09 15:15:29 +01:00
Kumi
d9a395ec76
docs: update README with new public instance
Added a new public instance of Wikimore hosted by Lumaeris to the README list. This helps users discover more available instances and expands the visibility of the project.

Closes #42.
2024-11-09 15:14:33 +01:00
Kumi
a4e9eb37ad Merge pull request 'Add blitzw.in instance' (#41) from blitzwing/wikimore:blitzwing-patch-1 into main
Reviewed-on: https://git.private.coffee/PrivateCoffee/wikimore/pulls/41
2024-11-05 06:35:33 +00:00
blitzwing
b93868f23d Update README.md 2024-11-04 22:56:55 +00:00
Kumi
11020b3566
chore: bump version to 0.1.5
Incremented version number to prepare for the new release, ensuring the changes made are properly reflected and versioned. This update helps maintain proper version tracking for future development and release cycles.
2024-10-02 11:25:50 +02:00
Kumi
18011f2fa7
feat(routing): add dynamic inbound redirects
Introduce a new route to handle redirects for different Wikimedia project domains. The route dynamically identifies the target project and language based on the domain name and redirects accordingly. If the project is not found, it displays a custom error page.

Enhances user navigation across Wikimedia subdomains, improving user experience and simplifying URL management. Addresses redirect issues for integration with LibRedirect (https://codeberg.org/LibRedirect/browser_extension/issues/142)
2024-10-02 11:25:14 +02:00
Kumi
5c933d4089
chore: bump version to 0.1.4
Updated the project version to 0.1.4 to reflect the latest changes and improvements made. Ensures consistency and clarity in version tracking.
2024-09-19 19:14:14 +02:00
Kumi
b095d8c9df
fix: standardize quote usage in URL generation
Updated single quote usage in URL generation for consistency and readability in `wiki_article` function. This improves code maintainability and avoids potential issues with character escaping.
2024-09-19 19:13:34 +02:00
Kumi
00d4f9694a
fix(api): correct API request URL handling of spaces
Switched double quotes to single quotes in URL handling code for better consistency and to avoid potential issues with escaping characters. This ensures the proper construction of the API request URL, improving reliability when fetching wiki articles.
2024-09-19 19:11:49 +02:00
Kumi
203e6cd2cf
docs: add bloat.cat public instance to list
Included a new public instance of Wikimore provided by bloat.cat based in Germany. This update helps users find more public instances for better accessibility and redundancy.

Closes #39
2024-09-11 18:16:01 +02:00
Kumi
3c617b0dd6
fix(error-handling): remove unused exception variable
Removed the unused exception variable from the error handling block during MediaWiki API request. This helps in reducing potential future linting errors and maintains cleaner code. No functional changes.
2024-09-01 16:02:22 +02:00
Kumi
a484b18989
feat: cache license info for better efficiency
Introduced caching for license data retrieved from the MediaWiki API. This avoids redundant API requests by storing the license information for each base URL. Enhances performance and reduces the risk of hitting request limits or encountering errors due to multiple API calls.
2024-09-01 16:02:07 +02:00
Kumi
872157139a
feat(app): enhance article rendering with project/lang params
Extended the home route to accept optional project and language
parameters to dynamically render content based on these inputs.
Improved handling within the article fetching function, including
validating projects and languages, adding variant headers, and
following redirects conditionally. Updated links to accommodate
internal, external, and interwiki links, with structured checks
for main page redirections. Removed redundant meta links and edit
sections to clean up the rendered content. Added proxying for images
and videos, converted category elements to links, and improved class
assignments for reference links. Ensured right-to-left languages are
handled appropriately.

Fixes #29.
2024-08-31 08:11:55 +02:00