Skip to content

Commit

Permalink
Fix UG format
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed May 29, 2021
1 parent ada4e62 commit bade834
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion user_guide_src/source/libraries/publisher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ You want to display a "photo of the day" image on your homepage. You have a feed
need to get the actual file into a browsable location in your project at **public/images/daily_photo.jpg**.
You can set up :doc:`Custom Command </cli/cli_commands>` to run daily that will handle this for you::

<?php

namespace App\Commands;

use CodeIgniter\CLI\BaseCommand;
Expand Down Expand Up @@ -159,6 +161,8 @@ You want to integrate the frontend library "Bootstrap" into your project, but th
to keep up with. You can create a publication definition in your project to sync frontend assets by adding extending
``Publisher`` in your project. So **app/Publishers/BootstrapPublisher.php** might look like this::

<?php

namespace App\Publishers;

use CodeIgniter\Publisher\Publisher;
Expand Down Expand Up @@ -207,7 +211,7 @@ Now add the dependency via Composer and call ``spark publish`` to run the public
> composer require twbs/bootstrap
> php spark publish

... and you'll end up with something like this:
... and you'll end up with something like this::

public/.htaccess
public/favicon.ico
Expand Down Expand Up @@ -240,6 +244,8 @@ You want to allow developers using your popular authentication module the abilit
of your Migration, Controller, and Model. You can create your own module "publish" command to inject these components
into an application for use::

<?php

namespace Math\Auth\Commands;

use CodeIgniter\CLI\BaseCommand;
Expand Down

0 comments on commit bade834

Please sign in to comment.