forked from xilinus/prototypeui
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more detail on README, prepare for pdoc
- Loading branch information
Showing
11 changed files
with
104 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dist/* | ||
doc/config/Data | ||
doc/files/**/* | ||
doc/* | ||
doc/javascript/* | ||
doc/styles/* | ||
pdoc/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Prototype UI | ||
|
||
## Distrib files | ||
|
||
To generate distrib files, you need to run rake tasks. | ||
|
||
> rake dist | ||
To generate one JS file in dist directory with all components (prototype-iu.js) | ||
|
||
> rake dist:each | ||
To generate one JS file per component (window.js, carousel.js ...) in dist directory | ||
|
||
> rake dist:compress | ||
To compress all JS files from dist directory (window.js ==> window.packed.js ...) | ||
|
||
## Documentation | ||
|
||
Currently, documentation is based on NaturalDocs. To generate hmtl files just tun | ||
|
||
> rake doc | ||
## Help | ||
|
||
We want to move to [PDoc](http://pdoc.org/) and we need help to write new documentation. | ||
Nothing has been done yet, only rake tasks. | ||
|
||
If you want to generate pdoc files, you need to get pdoc (it's included as a git submodule) | ||
Do it only once to get pdoc | ||
|
||
> git submodule init | ||
> git submodule update | ||
then you can generate pdoc files | ||
|
||
> rake -f Rakefile.pdoc pdoc | ||
And open pdoc/index.html to check it. Pretty easy. | ||
|
||
To avoid conflicts with current doc, do not includ pdoc comment in current JS file. Edit documentation.pdoc in each component directory. | ||
When you're done, pull request :). | ||
|
||
Thanks in advance for your help. | ||
|
||
## Bugs Report | ||
|
||
We are also moving to [lighthouseapp.com](http://lighthouseapp.com/), right now you can fill tockets on our [Trac](http://dev.prototype-ui.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
load 'Rakefile' | ||
|
||
desc "Create HTML documentation using pdoc" | ||
task :pdoc => :dist do | ||
task :pdoc do | ||
require 'lib/pdoc' | ||
FileUtils.rm_rf "pdoc" | ||
FileUtils.mkdir "pdoc" | ||
PDoc::Generators::Html::Website.new(File.expand_path(File.join(File.dirname(__FILE__), "lib", "pdoc_template", "pdoc.js"))).render | ||
tmp_filename = File.join(File.dirname(__FILE__), 'pdoc', 'all.pdoc') | ||
open(tmp_filename, 'w') do |f| | ||
Dir[File.join(File.dirname(__FILE__), "src", "**", "*.pdoc")].each do |file| | ||
puts file | ||
f << File.read(file) | ||
end | ||
end | ||
PDoc::Runner.new(tmp_filename).run | ||
|
||
FileUtils.rm tmp_filename | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if (!window.PDoc) window.PDoc = {}; | ||
PDoc.elements = { | ||
<%= @root.map { |e, i| | ||
"'#{e.full_name}': { 'name': '#{e.full_name}', 'type': '#{e.type}', 'path': '#{path_to(e)}' }" }.join(",\n") | ||
%> | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* == Carousel == | ||
* The Carousel section | ||
**/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* == Core == | ||
* The Core section | ||
**/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* == Util == | ||
* The Util section | ||
**/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* == Window == | ||
* The Window section | ||
**/ | ||
|
||
|
||
|