You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate static HTML site (static site generation, SSG) #136
Reacted by Kerim Güney, Wahyu Ibnu Dzakaria, Pulkit Kathuria, Ryan Nevius, idken, Nicholas Ramsay, Petr K., Narayan Sainaney, hifocus, Francois Killeen and 30 more
Reacted by SecretKeeper, Gautam krishna R and Sadegh Barati
Hi @dietergoetelen,
Now part of the compiler can run in Node, you can refer to docsify-server-renderer. We can read the files and then compile them like docsify-server-renderer do the same. Would you like to try it?
Adding my voice to this - would make it a lot easier for me to get this deployed as a tool as I'd be able to send generated files to our documentation hubs.
EDIT: Sorry, also forgot to say what an awesome tool this is and how long I've been searching for something that fills my needs the way this does. I've used a tonne of documentation tools and this one aligns with my thought process and development methods by far the best. Doesn't hurt that the output is gorgeous too!
Reacted by Adrian Z., Joe Pea, Arthur Fiorette and Maxime Lebastard
It was experimental and didn't reach a state of being ready.
But! I'm interested in another plan:
I'd like to get Docsify to use Solid.js (I've been working with the Solid team) for its built-in and fast SSR and SSG capabilities. This involves first re-writing Docsify internals as Solid components. I started that work in the dom-with-solid branch here:
where GithubCorner, Cover, and Main are also components, all with a more modern reactive-declarative paradigm.
Besides SSR and SSG, this will allow us to more easily implement features like custom templates in a nice way. Imagine browsing a collection of templates to choose from (not just CSS themes), each with unique functionalities.
Up next I will remove the existing SSR implementation (in that branch, or a new branch based on that branch) because it has issues with plugins, and fixing that would be some work that would need to be totally replaced with the Solid SSR approach anyway (and I don't want to spend time working on two things when I can work on just one).
I'm also not sure that the team will approve of this direction. In that case I will be willing to make a fork to continue working on it there.
Docsify may someday offer static site generation, but given the myriad of alternatives offering SSG it seems best for Docsify to continue focusing on its client-side site generation abilities.
Closing due to inactivity.
Reacted by Adrian Z., YalandHong, Marian, Ben Curtis, Martin Wendt, boydfd, karsey24, Nek.12, Diablo, Photon_box and 2 more
Activity
QingWei-Li commentedon Mar 17, 2017
Sorry I don't have time to do now 😣, if you are interested, you can contribute.
jrappen commentedon Mar 18, 2017
For comparison, maybe this is a start?
egoist commentedon Mar 28, 2017
so why not use gitbook 😄
jrappen commentedon Apr 21, 2017
I found
madoko:You can:
egoist commentedon Apr 21, 2017
@jrappen that looks cool, but seems it does the same things that gitbook can do
dietergoetelen commentedon May 31, 2017
@QingWei-Li I'm new to docsify, would love to see this feature. I'm interested in contributing, can you point me in the right direction?
egoist commentedon May 31, 2017
@dietergoetelen Seems the SSR API can achieve this https://docsify.js.org/#/ssr?id=deploy-for-your-vps
QingWei-Li commentedon May 31, 2017
Hi @dietergoetelen,
Now part of the compiler can run in Node, you can refer to
docsify-server-renderer. We can read the files and then compile them likedocsify-server-rendererdo the same. Would you like to try it?39 remaining items
qmjy commentedon Sep 9, 2020
I'm looking forward to it. 👍
itymarcel commentedon Jun 17, 2021
Also looking forward to it. Is there any reason why this hasn't been merged yet? Thank you for working on this it's an amazing tool!
MattRiddell commentedon Dec 14, 2021
Adding my voice to this - would make it a lot easier for me to get this deployed as a tool as I'd be able to send generated files to our documentation hubs.
EDIT: Sorry, also forgot to say what an awesome tool this is and how long I've been searching for something that fills my needs the way this does. I've used a tonne of documentation tools and this one aligns with my thought process and development methods by far the best. Doesn't hurt that the output is gorgeous too!
juukee commentedon Feb 19, 2022
so when can we use it?
weituotian commentedon Feb 19, 2022
hefengliang commentedon Jul 8, 2022
so when can we use it?
BryanYin commentedon Aug 10, 2022
Is there any reason why this hasn't been merged yet? Thank you for working on this it's an amazing tool!
trusktr commentedon Aug 10, 2022
It was experimental and didn't reach a state of being ready.
But! I'm interested in another plan:
I'd like to get Docsify to use Solid.js (I've been working with the Solid team) for its built-in and fast SSR and SSG capabilities. This involves first re-writing Docsify internals as Solid components. I started that work in the
dom-with-solidbranch here:develop...dom-with-solid
As you can see there, some internal code is getting cleaner, for example this code,
was changed to
where
GithubCorner,Cover, andMainare also components, all with a more modern reactive-declarative paradigm.Besides SSR and SSG, this will allow us to more easily implement features like custom templates in a nice way. Imagine browsing a collection of templates to choose from (not just CSS themes), each with unique functionalities.
Up next I will remove the existing SSR implementation (in that branch, or a new branch based on that branch) because it has issues with plugins, and fixing that would be some work that would need to be totally replaced with the Solid SSR approach anyway (and I don't want to spend time working on two things when I can work on just one).
I'm also not sure that the team will approve of this direction. In that case I will be willing to make a fork to continue working on it there.
sergeiromanov commentedon Oct 3, 2022
docsify looked so perfect for my case until I realized it doesn't generate static html :(
weituotian commentedon Oct 3, 2022
mandrasch commentedon Oct 4, 2022
Just a quick thought: Could docsify be coupled with eleventy (https://www.11ty.dev/) or astro (https://astro.build/)? Guess for some use case (https://github.com/hibbitts-design/docsify-open-course-starter-kit for example) working without
npmand without a build pipeline is a key feature of docsify. But for users wanting to have static output a (technical) bridge to eleventy or astro would be maybe an option as well? 🤔scruel commentedon Mar 24, 2023
I don't think this would be necessary, for crawlers, we can just provide them the hidden URLs which will redirect to markdown file directly?
weituotian commentedon Mar 24, 2023
jhildenbiddle commentedon Mar 1, 2024
Docsify may someday offer static site generation, but given the myriad of alternatives offering SSG it seems best for Docsify to continue focusing on its client-side site generation abilities.
Closing due to inactivity.