Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Jan 16, 2021
1 parent 521d3e8 commit 5257c89
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/extensions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/themes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/docs/content/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ parent: homepage
- [Template Editor](/extension/template-editor)
Edit view file online in the [admin](https://pushword.piedweb.com/extension/admin).

Add your own extension [editing this file on github](https://github.com/Pushword/Pushword/edit/main/packages/docs/content/extensions.md).
Add your own extension #[editing this file on github](https://github.com/Pushword/Pushword/edit/main/packages/docs/content/extensions.md).
2 changes: 2 additions & 0 deletions packages/docs/content/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ parent: contribute
- [ ] release de sonata 4
- [ ] Import(/export) Media in Flat (see facebook image importer)
- [ ] Test installer
- [ ] Force refresh for page-scanner
- [ ] update docs

## TODO Extension

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ parent: homepage
- ...
- ...

Add your own extension [editing this file on github](https://github.com/Pushword/Pushword/edit/main/packages/docs/content/extensions.md).
Add your own extension #[editing this file on github](https://github.com/Pushword/Pushword/edit/main/packages/docs/content/{{ page.slug }}.md).
5 changes: 1 addition & 4 deletions packages/page-scanner/src/PageScannerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Doctrine\ORM\EntityManagerInterface;
use PiedWeb\UrlHarvester\Harvest;
use Pushword\Core\Component\App\AppPool;
use Pushword\Core\Component\Router\RouterInterface as PwRouter;
use Pushword\Core\Entity\PageInterface;
use Pushword\Core\Utils\GenerateLivePathForTrait;
use Pushword\Core\Utils\KernelTrait;
Expand Down Expand Up @@ -44,17 +43,15 @@ public function __construct(
EntityManagerInterface $em,
string $webDir,
AppPool $apps,
PwRouter $router,
KernelInterface $kernel
) {
$this->twig = $twig;
$this->router = $router;
$this->router->setUseCustomHostPath(false);
$this->em = $em;
$this->webDir = $webDir;
$this->apps = $apps;

static::loadKernel($kernel);
static::$appKernel->getContainer()->get('pushword.router')->setUseCustomHostPath(false);
}

protected function resetErrors()
Expand Down
4 changes: 1 addition & 3 deletions packages/skeleton/public/assets/tw.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

{% block content %}


{% if page.toc is not null %}
{% block h1 %} {% endblock %}
<div class="flex flex-wrap">
Expand Down Expand Up @@ -40,13 +39,28 @@
{{ parent() }}
{% endif %}

{#
{% if page.slug != 'homepage' %}
<div class="p-5 pt-5 mx-3 text-yellow-800 border-l-4 border-yellow-500 bg-yellow-50">
{{ svg('exclamation-triangle') }} ...
</div>
{% endif %}#}


<div class="flex mx-3 mt-5">

{{ _self.previous(nav, page) }}

{{ _self.next(nav, page) }}
</div>

{% if page.slug != 'homepage' %}
<div class="mx-3 mt-10 text-sm font-light text-center text-gray-500">
{{ link(svg('edit', {'class': 'fill-current w-3 inline-block -mt-1'}) ~ '<span class="hidden ml-2 lg:inline-block">Edit via github</span>', 'https://github.com/Pushword/Pushword/edit/main/packages/docs/content/' ~ page.slug ~ '.md', {'class': 'hover:text-gray-900 dark:hover:text-gray-100'}) }}
</div>
{% endif %}


{% endblock %}


Expand Down
2 changes: 1 addition & 1 deletion packages/skeleton/var/page-scan

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/svg/src/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function getFunctions()
];
}

public function getSvg(string $name, $attr = ['class' => 'fill-current']): string
public function getSvg(string $name, $attr = ['class' => 'fill-current w-4 inline-block -mt-1']): string
{
$dir = $this->apps->get()->get('svg_dir');

Expand Down

0 comments on commit 5257c89

Please sign in to comment.