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
Belle Aerni
e96967f604
Two quick fixes
2023-01-07 13:37:49 -08:00
Belle Aerni
b953821dd2
Add template fallbacks. Closes #2
...
Also improved slightly the keyword generator, and added npm to dependabot scanning
2023-01-07 13:35:14 -08:00
Belle Aerni
a36755bb80
Improved caching
2023-01-07 12:15:29 -08:00
Belle Aerni
ee92c2f058
False -> no
2023-01-07 11:11:10 -08:00
Belle Aerni
906c88273f
Don't include dev packages in the preview build
2023-01-07 11:08:27 -08:00
Yağızhan
7af26306f6
Update readme.md
2023-01-07 20:34:19 +03:00
Yağızhan
4d745a6c9d
Update readme.md
2023-01-07 20:33:32 +03:00
Yağızhan
ce656562e9
Check the description
...
- Separated the part that generates the page layout into a new function.
- What we did above allowed us to use the page layout for pages that aren't meant to be loaded from local Markdown files, such as the error pages
- This allowed us to create a better error page. The new error page uses the theme's default layout, resulting in better error pages.
2023-01-07 17:41:17 +03:00
Yağızhan
5562f9b676
Allow defining what theme to get the content of
2023-01-07 17:25:12 +03:00
Yağızhan
c89c82fb64
This comment no longer applies
2023-01-07 16:59:01 +03:00
Yağızhan
a198f3995e
Tweaking Tailwind configuration
2023-01-07 16:55:36 +03:00