crazko / statie-web

📖 [deprecated] Documentation site for Statie - PHP Static Site Generator
2 stars 2 forks source link

Deprecate and move posts from TomasVotruba.cz #23

Closed TomasVotruba closed 5 years ago

TomasVotruba commented 5 years ago

The Symfony 4.2 and PHP 7.3 release is comming in these days, so it's time to clean old posts :)

I think it's the best to keep all source to one topic at one place, rather spread all over the internet.

Few posts are already on Statie.org, but most isn't.

I've already deprecated: https://www.tomasvotruba.cz/blog/2017/12/11/new-in-symplify-3-statie-generators/https://www.statie.org/docs/generators/

This posts needs to be moved:

Could you help me by moving them here so I could deprecated them and redirect on my blog?

crazko commented 5 years ago

Hi Tomas, sure, it makes sense to have it on one place. I'm happy to help. Would you like me to move all the content?

I can imagine:

What do you think?

TomasVotruba commented 5 years ago

Would you like me to move all the content?

That would be awesome! You don't have to check news in Statie 5, I'll just review and point what has changed (if any).

Very nice scheme - thank you for preparing it.

I agree with all 4 points :+1:

TomasVotruba commented 5 years ago

Related: https://github.com/TomasVotruba/tomasvotruba.cz/pull/582

crazko commented 5 years ago

Any idea why multiple generators don't work? Only tutorials are in the output, docs are missing.

https://github.com/crazko/statie-web/blob/aticles-to-docs/statie.yml#L14

TomasVotruba commented 5 years ago

That's definitely a bug. I'll look on that on laptop

TomasVotruba commented 5 years ago

This should fix it: https://github.com/Symplify/Symplify/pull/1242/files It works for me locally on this web.

Could you verify that by using the PR code in Generator.php?

I'll merge and release it then.

crazko commented 5 years ago

OK, so now pages are generated from both generators, but custom layout isn't used. Don't know how it is possible that content from articles is displayed...

TomasVotruba commented 5 years ago

Is the branch updated so I can try it locally?

crazko commented 5 years ago

Yes, it is.

TomasVotruba commented 5 years ago

I see it. The {extends ...} doesn't work well outside Nette application. And this is one of cases.

Use new templates instead with snippets, here is Latte example on Pehapkari.cz: https://github.com/pehapkari/pehapkari.cz/commit/e68d8f98172b2a04e4cf80e635c036c3f2a7bef2#diff-63d6418d873273aad1011eb0c40b5f3b

TomasVotruba commented 5 years ago

Btw, could you create PR so it I could just ping you the lines? It's not possible now

crazko commented 5 years ago

Will check that throughout the weekend.

TomasVotruba commented 5 years ago

Thank you :muscle: