Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

[feature request] Is there a way to replace index page? #28

Open
nesterow opened this issue Jul 23, 2019 · 5 comments
Open

[feature request] Is there a way to replace index page? #28

nesterow opened this issue Jul 23, 2019 · 5 comments

Comments

@nesterow
Copy link

It would be great if SkyDocs allowed to replace standard index page with a custom index.html.
I'm sorry if this feature already exists. It is possible that I just missed this option in the documentation.

Describe the solution you'd like :
Add a config variable to specify a custom index.html

Describe alternatives you've considered :
Currently I use git pre-commit hook

@Skyost
Copy link
Owner

Skyost commented Jul 23, 2019

You mean this one ?

@nesterow
Copy link
Author

Exactly. First thing I tried is to put index.html in the theme.

@Skyost
Copy link
Owner

Skyost commented Jul 23, 2019

Well sadly it's not possible as the only use of this page is to redirect the user to his corresponding language. What you can do is to manually edit it after your documentation build.

For example you could create a build.bat file containing this :

skydocs build
COPY "my_index\index.html" "build\" /Y

@nesterow
Copy link
Author

This is similar to what I do.
I build docs and replace index.html before every commit trough pre-commit hook. It just would be nicer to have it working on development server as well.
https://github.com/nesterow/frontless-docs/blob/07c6b068695692562122687c7d59ee37ceb3fd0f/Makefile#L5

@Skyost
Copy link
Owner

Skyost commented Jul 23, 2019

Good point. 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants