-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customization through user provided client scripts and stylesheets #2
Comments
Hi Zack, Actually, you can embed custom scripts, stylesheets, and images as I do: http://baoshan.github.com/docas/ It's not so common all generated documents will share the same set of resources. So specify them in the source file's comments may be more flexible. What's your opinion on this? Could you help figure out a smooth workflow for designing interactive documentation? Thanks. |
It is fairly common to include the same set of resources in generate documents. I would be including the same CSS every single time for all of the documentation. There has to be a way to always include the same files each time. Otherwise it will be too much hassle to add in custom css every time. What do you mean by interactive documentation? If you can define that then you would be starting off well. You might want to look into how gh-pages displays pages. They use some ruby thing, maybe sinatra?, to display everything. If people could have a local copy of docas on their machines, they could compile everything there. But if they had a local copy, they wouldn't need docas.io as a service. Is this a potential business you want to pursue? |
I understand for your
I just want to make sure for your scenario, treat all documents the same way and inject the stylesheets and scripts in the What I mean interactive documentation is not simple presentation of sources and explanations. I'm not to care about the technologies there, whether it be (Frank) Sinatra or Zappa :) I'm defining the workflow for designing interactive documents:
For your last question, it's more important for me to find the optimal solution for the correct question than doing business. I want to make docas useful, enjoyable. Thanks! |
Okay. Then the workflow should be something like the following: In the command line, issue a command that runs a server that serves the Example: Now, open up your favorite editor and change one of the files in the d3 That would be a wonderful way to start. On Thu, May 24, 2012 at 11:47 PM, baoshan <
|
Below example show a sample pattern which instruct
|
It would be interesting if Please re-open the issue if that's not what you want or the approach is not acceptable. And please provide feedbacks for improvement. Currently, I'm working for a performance boost. My goal is to finish the new compilation of the |
Great! I will take a stab at doing some remodeling this week with CSS. Live examples: one of the first things I thought of was live examples. I am On Sat, May 26, 2012 at 11:55 AM, baoshan <
|
Just added in d3.js to every page. Awesome. Are you sure you don't want the |
Also, maybe do a regular expression for file paths. Something like:
This would make interactive examples a hundred times easier to create. |
Great idea to re-name So I'll re-name About the regular expression pattern, it's also awesome and simple. I'll try to enhance the feature and when I'm done, I'll provide examples. Thanks. |
Cool. I've had to unwatch this project because you are doing so many pushes
|
@zmaril kindly suggested if users could put the following folder structure in their repos, docas should be able to pick the JavaScripts and stylesheets up in the rendered web pages.
The text was updated successfully, but these errors were encountered: