Skip to content

Commit

Permalink
Docs for settings + enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
RamezIssac committed Sep 24, 2023
1 parent a2432d7 commit 83e5eeb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 130 deletions.
7 changes: 0 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,6 @@ You can also use locally
the ``create_entries`` command will generate data for the demo app

A Preview:

.. image:: https://i.ibb.co/SvxTM23/Selection-294.png
:target: https://i.ibb.co/SvxTM23/Selection-294.png
:alt: Shipped in View Page


Documentation
-------------

Expand Down
114 changes: 0 additions & 114 deletions docs/source/charts.rst

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ Next step :ref:`tutorial`
concept
tutorial
topics/index
howto/index
charts
ref/index


Expand Down
29 changes: 22 additions & 7 deletions docs/source/ref/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Below are the default settings for django-slick-reporting. You can override them

.. code-block:: python
SLICK_REPORTING_SETTINGS_DEFAULT = {
SLICK_REPORTING_SETTINGS = {
"JQUERY_URL": "https://code.jquery.com/jquery-3.7.0.min.js",
"DEFAULT_START_DATE_TIME": datetime(
datetime.now().year, 1, 1, 0, 0, 0, tzinfo=timezone.utc
), # 1st Jan of current year
"DEFAULT_END_DATE_TIME": datetime.datetime.today(), # today
), # Default: 1st Jan of current year
"DEFAULT_END_DATE_TIME": datetime.datetime.today(), # Default to today
"FONT_AWESOME": {
"CSS_URL": "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css",
"ICONS": {
Expand All @@ -37,18 +37,33 @@ Below are the default settings for django-slick-reporting. You can override them
},
}
* JQUERY_URL:

Link to the jquery file, You can use set it to False and manage the jQuery addition to your liking

* DEFAULT_START_DATE_TIME

Default date time that would appear on the filter form in the start date

* DEFAULT_END_DATE_TIME

Default date time that would appear on the filter form in the end date

* FONT_AWESOME:

*. FONT_AWESOME
Font awesome is used to display the icon next to the chart title. You can override the following settings:

1. ``CSS_URL``: URL to the font-awesome css file
2. ``ICONS``: Icons used for different chart types.

*. CHARTS:
* CHARTS:

The entry points for displaying charts on the front end.
YOu can add your own chart engine by adding an entry to this dictionary.
You can add your own chart engine by adding an entry to this dictionary.

* MESSAGES:
The strings used in the front end. You can override them here, it also gives a chance to set and translate them per your requirements.

The strings used in the front end. You can override them here, it also gives a chance to set and translate them per your requirements.


Old versions settings:
Expand Down

0 comments on commit 83e5eeb

Please sign in to comment.