Belle Aerni
506e66c0ae
Merge pull request #11 from AntCMS-org/docsandtypehints
...
Added missing type hints, bumped PHPStan to level 6
2023-01-10 18:22:09 -08:00
Belle Aerni
7adb5d51a6
Added missing type hints, bumped PHPStan to level 6
2023-01-10 18:20:24 -08:00
Belle Aerni
4c0a950179
Merge pull request #10 from AntCMS-org/currentconfig
...
Refactor AntConfig::currentConfig
2023-01-10 17:26:46 -08:00
Belle Aerni
c15bf1f449
Refactor AntConfig::currentConfig
2023-01-10 17:24:30 -08:00
Belle Aerni
aff54916e9
Merge pull request #9 from AntCMS-org/dependabot/npm_and_yarn/tailwindcss/typography-0.5.9
...
Bump @tailwindcss/typography from 0.5.8 to 0.5.9
2023-01-10 17:22:30 -08:00
dependabot[bot]
e7e7628d91
Bump @tailwindcss/typography from 0.5.8 to 0.5.9
...
Bumps [@tailwindcss/typography](https://github.com/tailwindcss/typography ) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/tailwindcss/typography/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss-typography/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindcss/typography/compare/v0.5.8...v0.5.9 )
---
updated-dependencies:
- dependency-name: "@tailwindcss/typography"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 01:13:14 +00:00
Belle Aerni
da69eb3f81
Updated file extension to .twig
2023-01-10 06:32:51 -08:00
Belle Aerni
22007f4c57
Improved tailwind theme's layout for desktop
2023-01-10 04:53:49 -08:00
Belle Aerni
cb0a1917a9
Update admin plugin to render with twig
2023-01-10 00:26:05 -08:00
Belle Aerni
2a1af73f75
Use the .twig file extension
2023-01-10 00:07:20 -08:00
Belle Aerni
3405291db1
Move the config and pages .yaml files to /Config
2023-01-09 22:55:02 -08:00
Belle Aerni
51211d87ec
Allow access to a sitemap.xml file if it exists
2023-01-09 16:09:22 -08:00
Belle Aerni
52e102e63b
Bootstrap: make the footer fixed to the bottom
2023-01-09 15:03:56 -08:00
Belle Aerni
89b182b3be
Merge pull request #8 from AntCMS-org/twig
...
Started to migrate to twig
2023-01-09 13:16:58 -08:00
Belle Aerni
9510bf2e9b
Update tailwind for twig
2023-01-09 13:09:06 -08:00
Belle Aerni
fa1d942d4e
Started to migrate to twig
2023-01-09 12:50:11 -08:00
Belle Aerni
d4331326f6
Missed codeblocks
2023-01-09 11:15:48 -08:00
Belle Aerni
ff68feeae6
Improved readme
2023-01-09 11:11:32 -08:00
Belle Aerni
55e20d3f25
Update CMSTest.php
2023-01-09 10:55:34 -08:00
Belle Aerni
b60439a9a9
Tests
...
Test, tests, baby (insert sounds from ice, ice, baby)
2023-01-09 10:47:55 -08:00
Belle Aerni
37a0f2ffcd
Make testMarkdownIsFast much stricter
...
Now it runs 10 times and averages the time spent, it needs to be less than 0.015 seconds
2023-01-09 10:15:50 -08:00
Belle Aerni
1f4b40a787
Fix assertion
2023-01-09 01:09:11 -08:00
Belle Aerni
2acfc2d50d
And added some more
2023-01-09 01:05:24 -08:00
Belle Aerni
5df8872a62
Fix AntTools::repairFilePath
2023-01-09 00:32:49 -08:00
Belle Aerni
22efe315c4
More unit tests
2023-01-09 00:26:30 -08:00
Belle Aerni
757b1b3ade
This fix it?
2023-01-08 23:49:17 -08:00
Belle Aerni
e09d4ca60d
Experimenting with unit tests
2023-01-08 23:43:17 -08:00
Belle Aerni
1dc25e2d32
Move from php-markdown to commonmark
...
Better maintained, much more popular, supports GH style markdown.
Also added an emoji plugin for it so we don't have to maintain our own list of them.
Unfortunately, moving this does nearly double the size of AntCMS, but it's a worthwhile tradeoff
2023-01-08 22:01:05 -08:00
dependabot[bot]
074cc47625
Bump phpstan/phpstan from 1.9.7 to 1.9.8 ( #7 )
...
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan ) from 1.9.7 to 1.9.8.
- [Release notes](https://github.com/phpstan/phpstan/releases )
- [Changelog](https://github.com/phpstan/phpstan/blob/1.9.x/CHANGELOG.md )
- [Commits](https://github.com/phpstan/phpstan/compare/1.9.7...1.9.8 )
---
updated-dependencies:
- dependency-name: phpstan/phpstan
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-08 18:35:47 -08:00
Belle Aerni
073ee79eae
Create nginx.conf
...
This is untested, but *should* work, it's not a complicated config
2023-01-08 17:46:22 -08:00
Belle Aerni
930766b1a3
Create LICENCE.md
2023-01-08 17:41:17 -08:00
Belle Aerni
d31da240c4
Added robots.txt
...
And allow it through the .htaccess
2023-01-08 17:28:08 -08:00
Belle Aerni
6d3f8a3da1
Admin plugin : added create page option
...
Also introduced AntTools::repairFilePath
2023-01-08 16:53:58 -08:00
Belle Aerni
d6588573b0
Fallback to the default theme
...
if the configured one doesn't exist, fallback to "Default"
2023-01-08 15:47:23 -08:00
Belle Aerni
7739b2875d
+ real time markdown preview
...
Also created admin plugin templates for the Bootstrap theme
2023-01-08 15:38:25 -08:00
Belle Aerni
6fe8dd90cd
Link to the website instead of repo
2023-01-08 11:50:59 -08:00
Belle Aerni
6b0a424a52
Updated repo links
2023-01-08 09:51:21 -08:00
Belle Aerni
2de92731cf
Updated readme
2023-01-08 09:28:24 -08:00
Belle Aerni
90a31b2941
Created a cron file to cleanup cache
...
+ use a few directory separators for better portability in the code
2023-01-08 09:14:40 -08:00
Belle Aerni
457cce525b
Basic plugin support + admin plugin ( #5 )
...
* Started writing plugin support
* Started work on the Admin plugin
* Added page list regeneration option
* Started work on the config editor
* Rebased
* Admin plugin can now edit the config
* Ability to edit pages + verify config before saving
* Make PHPStan happy :)
* Implemented authentication
2023-01-08 08:54:54 -08:00
Yağızhan
0c79ec0ba6
Prose styling
2023-01-08 08:48:49 +03:00
Belle Aerni
dbf2600afb
Update .htaccess
2023-01-07 21:23:15 -08:00
Belle Aerni
8d68293798
Hide code backticks. Related to #3
2023-01-07 18:04:55 -08:00
Belle Aerni
f5844cb2cc
Rewrote to server content through index.php
2023-01-07 17:44:16 -08:00
Belle Aerni
ca005bd074
This .htaccess seems to work better for me
2023-01-07 16:48:45 -08:00
Belle Aerni
47d86d8b6d
Improvements to the readme
...
Also made the index.md file a copy of the readme, so it will be the first thing people see when they access it
2023-01-07 14:58:42 -08:00
Belle Aerni
f86b8a988b
Use AntTools::getFileList while getting page list
2023-01-07 14:29:12 -08:00
Belle Aerni
1d65fca192
Fix a small typo
2023-01-07 14:09:01 -08:00
Belle Aerni
d1fd6521f9
Make tailwind the default and generate the CSS
...
Closes #1 + makes the smaller and faster theme the default
2023-01-07 14:06:47 -08:00
Belle Aerni
3ee0161c11
Small tweak to the preview generator
2023-01-07 13:42:55 -08:00