-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sweeping documentation updates (#548)
--- Co-authored-by: Zachary Svoboda <93960196+Zsvoboda87@users.noreply.github.com>
- Loading branch information
1 parent
4ba33d7
commit a195027
Showing
305 changed files
with
2,074 additions
and
1,274 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. _accordion-block: | ||
|
||
Accordion Block | ||
=============== | ||
|
||
Creates a collapsible section with a button to toggle. | ||
Each Accordion has multiple sections or panels. | ||
|
||
`View example live <https://crxpharma.codered.cloud/demo-blocks/accordion-block/>`_ | ||
|
||
|
||
Example: | ||
|
||
.. figure:: images/accordion_closed.jpeg | ||
:alt: demo accordion closed | ||
|
||
Demo accordion closed | ||
|
||
.. figure:: images/accordion_open.jpeg | ||
:alt: demo accordion with panel open | ||
|
||
Demo accordion with panel open | ||
|
||
Field Reference | ||
--------------- | ||
|
||
Fields and purposes: | ||
|
||
* **Accordion** - Choose a preexisting accordion snippet, created under snippets. | ||
|
||
Editor: | ||
|
||
.. figure:: images/accordion_demo.jpeg | ||
:alt: Editing screen for accordion | ||
|
||
Editing screen for accordion | ||
|
||
Each Accordion panel needs a name and content. After you make a second panel, | ||
arrows will appear to allow you to change the order of the panels. | ||
|
||
.. figure:: images/accordion_arrows.jpeg | ||
:alt: arrows on the accordion panels | ||
|
||
Arrows on the accordion panels. They appear after you make a second panel. | ||
|
||
Additional Information in the `bootstrap docs <https://getbootstrap.com/docs/5.2/components/accordion/>`_ |
File renamed without changes.
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
.. _carousel-block: | ||
|
||
Carousel Block | ||
============== | ||
|
||
Allows the user to create a carousel with image backgrounds and relevant blocks. | ||
Carousels automatically change slides, but also have arrow controls for the user to advance or return to the previous slide. | ||
Make a Carousel by going to **Snippets > Carousels** and clicking Add Carousel. | ||
|
||
Example: | ||
.. figure:: images/carousel_example.jpeg | ||
:alt: default button styles | ||
|
||
default button styles | ||
|
||
|
||
Field Reference | ||
--------------- | ||
|
||
Fields and purposes: | ||
|
||
* **Carousel** - Choose a Carousel | ||
|
||
If you don't have any carousels already made, you can build a carousel by clicking **Choose A Carousel** and | ||
clicking on "Why not **create one now**?" in the popup box. This will take you to **Snippets > Carousels** where | ||
you can create a carousel to add to the page. Here is a carousel editor with three slides; each slide has a caption: | ||
|
||
.. figure:: images/carousel_editor.jpeg | ||
:alt: Building a carousel in Snippets | ||
|
||
The edit mode for building a carousel snippet | ||
|
||
Save your work and now you can select that carousel in a page editor. This one is named Demo. Here is a preview of for one of our slides: | ||
|
||
.. figure:: images/carousel_preview.jpeg | ||
:alt: Our carousel published on the page | ||
|
||
The carousel published on a page | ||
|
||
You'll notice it's hard to see the caption because the bootstrap default text is white. Let's look at customizing our carousel two different ways. | ||
|
||
First, you can override the CSS class. If you look at the `bootstrap docs <https://getbootstrap.com/docs/5.2/components/carousel/>`_ or the template. | ||
You'll find the class for caption is ``carousel-caption``. For our example, let's add a background-color and border-radius. | ||
|
||
.. code:: CSS | ||
.carousel-caption{ | ||
background-color: rgba(60, 60, 60, 0.5); | ||
border-radius: 10px; | ||
} | ||
Add this to your custom.css file (basic installation) or the custom.scss file (sass installation). | ||
Save the file, compile the sass(sass install only), and hard refresh the browser. See :ref:`adding_custom_css` for more details. | ||
|
||
.. figure:: images/carousel_preview_bg.jpeg | ||
:alt: Our carousel published on the page | ||
|
||
The carousel published on a page | ||
|
||
The second option would be to alter the template. | ||
Looking at the `bootstrap docs <https://getbootstrap.com/docs/5.2/components/carousel/>`_ you can find there is a dark variant. | ||
See :ref:`customizing_templates` for a more detailed tutorial on overriding templates. | ||
|
||
* To alter our template you need to copy the template from `github <https://github.com/coderedcorp/coderedcms/blob/dev/coderedcms/templates/coderedcms/blocks/carousel_block.html>`_ | ||
* Paste the file in the correct directory so it overrides the default template. Our file path: **mysite>website>templates>coderedcms>blocks>carousel_block.html** | ||
* In carousel_block.html on line 4; add carousel-dark to the class attribute. The line should now look like this: | ||
|
||
.. code:: html | ||
|
||
<div id="carousel-{{self.carousel.id}}" class="carousel carousel-dark slide" data-bs-ride="carousel"> | ||
|
||
* Save the file and refresh the browser. | ||
|
||
.. figure:: images/carousel_preview_dark.jpeg | ||
:alt: Our carousel published on the page | ||
|
||
The carousel published on a page | ||
|
||
(In this example, I removed the custom css for .carousel-caption from the previous example) |
Oops, something went wrong.