โ ๏ธ This is question issue โ ๏ธ
How to create any /path root index.html and routes setting ?
Because, I tried to touch /blog/index.md that to create /blog root index.html.
But, as excecuted npm run scully -- --sr result, /blog/index/index.html is output.
So, this output is routes detected /blog/index path...
If there is any officially available method, please enjoy it.
โ ๏ธ I don't think it's a bug, but I'll post an issue with this template,
so I'm sorry if it's an already asked question ๐โโ๏ธ
๐ Branch in progress
Angular Version:
"@angular/core": "~9.1.11"
Scully Version:
"@scullyio/init": "0.0.28"
"@scullyio/ng-lib": "latest"
"@scullyio/scully": "latest"
@uruha Can you explain your motivation?
We are building the path's this way because most hosting services/HTML servers demand a structure like that.
if you want to create a 'blog/index.html' you should have a route in your app that handles '/blog' without any addition. We do have something like that in our sample app.
@SanderElias
Thank you for your reply ๐
Can you explain your motivation?
Currently, I am working on a FrontEnd guideline in Angular at my company,
This time, we are considering whether it is possible to move to Scully for convenience of operation.
The current guideline URI structure is as follows.
URI root
โ /intro
โ /html
โ /css
โ /js
โ โ /linter-formatter
โ โ /naming-convention
โ โ /asynchronous
โ โ /pre-commit
โ โ /typescript
โ /testing
โ /a11y
โ /security
โ /tips
ใ โ /sesign-pattern
ใ โ /scaffolding
My motivation is to use Scully to achieve a similar URI with the following markdown configuration.
Scully project root
โ /intro
โ โ index.md => example.com/intro
โ /html
โ โ index.md => example.com/html
โ /css
โ โ index.md => example.com/css
โ /js
โ โ index.md => example.com/js
โ โ linter-formatter.md => example.com/js/linter-formatter
โ โ naming-convention.md => ... as a same
โ โ asynchronous.md
โ โ pre-commit.md
โ โ typescript.md
โ /testing
โ
as a same
The root of each URI path has a description and general description of that section, so I thought that it would be happy to create a document at index as much as possible, so I discussed this time ๐โโ๏ธ.
We do have something like that in our sample app.
Is this in the Scully repository? If you have source code, please let me know! ๐คฉ (I will refer to it!)
Oh, yes, that structure is fully possible.
@GuzmanPI is working on a plugin that takes a single file, and puts it manually into a route. (He is building on top of this plugin
Is that what you are looking for?
Yes @uruha, as @SanderElias mentioned I am currently working on a plugin for this. It is actually finished, and I'll have a PR for it tomorrow.
Thank you very much.
It seems to be solved by using this plugin !
@uruha As you redeem this as solved, I'll close the issue.
@GuzmanPI @SanderElias What happened to the mdReplaceRoutePlugin plugin? I found the PR but it was closed without merging.
IIRC there were some merge conflicts, and @GuzmanPI would ix something that needed to be changed and would file a new PR.
@GuzmanPI Is this still on your radar?
Most helpful comment
Yes @uruha, as @SanderElias mentioned I am currently working on a plugin for this. It is actually finished, and I'll have a PR for it tomorrow.