diff --git a/Dockerfile b/Dockerfile index d5bcf75c2..5e6b2690e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,7 @@ RUN apt-get update \ libqpdf-dev \ libxml2 \ libxslt1-dev \ + mime-support \ optipng \ pngquant \ qpdf \ diff --git a/README.md b/README.md index 5c5fa4a76..04cbdc41b 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,9 @@ For a complete list of changes from paperless, check out the [changelog](https:/ - Make the front end nice (except mobile). - Fix whatever bugs I and you find. +- Start using CI to build the app. +- Simplify updates. +- Make the documentation nice. ## Roadmap for versions beyond 1.0 @@ -64,12 +67,10 @@ These are things that I want to add to paperless eventually. They are sorted by - **More search.** The search backend is incredibly versatile and customizable. Searching is the most important feature of this project and thus, I want to implement things like: - Group and limit search results by correspondent, show “more from this” links in the results. - **Nested tags**. Organize tags in a hierarchical structure. This will combine the benefits of folders and tags in one coherent system. -- **Localization.** I won't translate paperless into any other languages except English and German, however, I'll add the necessary means so that anyone can translate paperless into their favorite language. - **An interactive consumer** that shows its progress for documents it processes on the web page. - With live updates and websockets. This already works on a dev branch, but requires a lot of new dependencies, which I'm not particularly happy about. - Notifications when a document was added with buttons to open the new document right away. - **Arbitrary tag colors**. Allow the selection of any color with a color picker. -- **More file types**. Possibly allow more file types to be processed by paperless, such as office .odt, .doc and .docx documents. Apart from that, paperless is pretty much feature complete. @@ -102,6 +103,12 @@ Read the section about [migration](https://paperless-ng.readthedocs.io/en/latest The documentation for Paperless-ng is available on [ReadTheDocs](https://paperless-ng.readthedocs.io/). +# Translation + +Paperless is currently available in English, German, Dutch and French. Translation is coordinated at transifex: https://www.transifex.com/paperless/paperless-ng + +If you want to see paperless in your own language, request that language at transifex and you can start translating after I approve the language. + # Suggestions? Questions? Something not working? Please open an issue and start a discussion about it! diff --git a/docs/changelog.rst b/docs/changelog.rst index 94619896f..69b3090ee 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,12 @@ Changelog ********* +paperless-ng 0.9.13 +################### + +* Fixed an issue with Paperless not starting due to the new Tika integration when ``USERMAP_UID`` and ``USERMAP_GID`` was used + in the ``docker-compose.env`` file. + paperless-ng 0.9.12 ################### diff --git a/docs/configuration.rst b/docs/configuration.rst index ae4a8b7c8..d122216a1 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -294,9 +294,6 @@ converting "Office" documents (such as ".doc", ".xlsx" and ".odt"). If you wish to use this, you must provide a Tika server and a Gotenberg server, configure their endpoints, and enable the feature. -If you run paperless on docker, you can add those services to the docker-compose -file (see the examples provided). - PAPERLESS_TIKA_ENABLED= Enable (or disable) the Tika parser. @@ -312,6 +309,40 @@ PAPERLESS_TIKA_GOTENBERG_ENDPOINT= Defaults to "http://localhost:3000". +If you run paperless on docker, you can add those services to the docker-compose +file (see the provided ``docker-compose.tika.yml`` file for reference). The changes +requires are as follows: + +.. code:: yaml + + services: + # ... + + webserver: + # ... + + environment: + # ... + + PAPERLESS_TIKA_ENABLED: 1 + PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000 + PAPERLESS_TIKA_ENDPOINT: http://tika:9998 + + # ... + + gotenberg: + image: thecodingmachine/gotenberg + restart: unless-stopped + environment: + DISABLE_GOOGLE_CHROME: 1 + + tika: + image: apache/tika + restart: unless-stopped + +Add the configuration variables to the environment of the webserver (alternatively +put the configuration in the ``docker-compose.env`` file) and add the additional +services below the webserver service. Watch out for indentation. Software tweaks ############### diff --git a/src-ui/src/app/components/app-frame/app-frame.component.scss b/src-ui/src/app/components/app-frame/app-frame.component.scss index 6809875eb..e4b21add7 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.scss +++ b/src-ui/src/app/components/app-frame/app-frame.component.scss @@ -113,7 +113,7 @@ background-color: rgba(0, 0, 0, 0.15); padding-left: 1.8rem; border-color: rgba(255, 255, 255, 0.2); - transition: flex 0.3s ease; + transition: all .3s ease, padding-left 0s ease, background-color 0s ease; // Safari requires all max-width: 600px; min-width: 300px; // 1/2 max diff --git a/src-ui/src/app/components/dashboard/dashboard.component.html b/src-ui/src/app/components/dashboard/dashboard.component.html index 50bd44a4e..47751fe8b 100644 --- a/src-ui/src/app/components/dashboard/dashboard.component.html +++ b/src-ui/src/app/components/dashboard/dashboard.component.html @@ -1,5 +1,5 @@ -  Edit - +  View - + diff --git a/src-ui/src/environments/environment.prod.ts b/src-ui/src/environments/environment.prod.ts index 07a84e660..de212d2d5 100644 --- a/src-ui/src/environments/environment.prod.ts +++ b/src-ui/src/environments/environment.prod.ts @@ -2,5 +2,5 @@ export const environment = { production: true, apiBaseUrl: "/api/", appTitle: "Paperless-ng", - version: "0.9.12" + version: "0.9.13" }; diff --git a/src-ui/src/theme_dark.scss b/src-ui/src/theme_dark.scss index e65d4564e..a58745b21 100644 --- a/src-ui/src/theme_dark.scss +++ b/src-ui/src/theme_dark.scss @@ -297,7 +297,8 @@ $border-color-dark-mode: #47494f; } } - .ng-dropdown-panel .ng-dropdown-panel-items .ng-option:hover { + .ng-dropdown-panel .ng-dropdown-panel-items .ng-option:hover, + .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked { background-color: $bg-light-dark-mode; } diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py index 8ac60aa6d..d0c045db2 100644 --- a/src/documents/management/commands/document_consumer.py +++ b/src/documents/management/commands/document_consumer.py @@ -46,7 +46,7 @@ def _consume(filepath): return if not is_file_ext_supported(os.path.splitext(filepath)[1]): - logger.debug( + logger.warning( f"Not consuming file {filepath}: Unknown file extension.") return diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 8c91938aa..d0e32b4a0 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -90,7 +90,6 @@ INSTALLED_APPS = [ "documents.apps.DocumentsConfig", "paperless_tesseract.apps.PaperlessTesseractConfig", "paperless_text.apps.PaperlessTextConfig", - "paperless_tika.apps.PaperlessTikaConfig", "paperless_mail.apps.PaperlessMailConfig", "django.contrib.admin", @@ -461,6 +460,9 @@ PAPERLESS_TIKA_GOTENBERG_ENDPOINT = os.getenv( "PAPERLESS_TIKA_GOTENBERG_ENDPOINT", "http://localhost:3000" ) +if PAPERLESS_TIKA_ENABLED: + INSTALLED_APPS.append("paperless_tika.apps.PaperlessTikaConfig") + # List dates that should be ignored when trying to parse date from document text IGNORE_DATES = set() for s in os.getenv("PAPERLESS_IGNORE_DATES", "").split(","): diff --git a/src/paperless/version.py b/src/paperless/version.py index b9f980934..f5815078f 100644 --- a/src/paperless/version.py +++ b/src/paperless/version.py @@ -1 +1 @@ -__version__ = (0, 9, 12) +__version__ = (0, 9, 13)