Skip to content

Commit 9fbfb59

Browse files
committed
Disclaimer texts on generated pages
1 parent 9c2db5e commit 9fbfb59

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

_octopress/Rakefile

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ deploy_branch = "gh-pages"
1515

1616
## -- Misc Configs -- ##
1717

18-
public_dir = "public/phpjs" # compiled site directory
19-
source_dir = "source" # source file directory
20-
blog_index_dir = 'source' # directory for your blog's index page (if you put your index in source/blog/index.html, set this to 'source/blog')
21-
deploy_dir = "_deploy" # deploy directory (for Github pages deployment)
22-
stash_dir = "_stash" # directory to stash posts for speedy generation
23-
posts_dir = "_posts" # directory for blog files
24-
themes_dir = ".themes" # directory for blog files
25-
new_post_ext = "markdown" # default new post file extension when using the new_post task
26-
new_page_ext = "markdown" # default new page file extension when using the new_page task
27-
server_port = "4000" # port for preview server eg. localhost:4000
18+
public_dir = "public/phpjs" # compiled site directory
19+
source_dir = "source" # source file directory
20+
blog_index_dir = 'source' # directory for your blog's index page (if you put your index in source/blog/index.html, set this to 'source/blog')
21+
deploy_dir = "_deploy" # deploy directory (for Github pages deployment)
22+
stash_dir = "_stash" # directory to stash posts for speedy generation
23+
posts_dir = "_posts" # directory for blog files
24+
themes_dir = ".themes" # directory for blog files
25+
new_post_ext = "markdown" # default new post file extension when using the new_post task
26+
new_page_ext = "markdown" # default new page file extension when using the new_page task
27+
server_port = "4000" # port for preview server eg. localhost:4000
2828

2929

3030
desc "Build jekyll source by php.js source"
@@ -63,6 +63,10 @@ task :build do
6363
page_fncs.puts "- /packages"
6464
page_fncs.puts "---"
6565
page_fncs.puts "<!-- Generated by Rakefile:build -->"
66+
page_fncs.puts "If you are missing functions, there is a chance you may find them in our [experimental](https://github.com/kvz/phpjs/tree/master/experimental) "
67+
page_fncs.puts "and [workbench](https://github.com/kvz/phpjs/tree/master/workbench) folders. Warning: we keep "
68+
page_fncs.puts "these functions there for a reason. "
69+
6670

6771
Dir.chdir("../functions")
6872
Dir.glob("*/").each { |dir|
@@ -154,8 +158,17 @@ task :build do
154158
page_fnc.puts "#{contents}"
155159
page_fnc.puts "{% endcodeblock %}"
156160
page_fnc.puts ""
157-
page_fnc.puts " - [view on github](https://github.com/kvz/phpjs/blob/master/functions/#{category}/#{function}.js)"
158-
page_fnc.puts " - [edit on github](https://github.com/kvz/phpjs/edit/master/functions/#{category}/#{function}.js)"
161+
page_fnc.puts " - [Raw function on GitHub](https://github.com/kvz/phpjs/blob/master/functions/#{category}/#{function}.js)"
162+
page_fnc.puts ""
163+
page_fnc.puts "Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are "
164+
page_fnc.puts "the closest match to this hashtable-like data structure. "
165+
page_fnc.puts ""
166+
page_fnc.puts "Please also note that php.js offers community built functions and goes by the "
167+
page_fnc.puts "[McDonald’s Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put online "
168+
page_fnc.puts "functions that are far from perfect, in the hopes to spark better contributions. "
169+
page_fnc.puts "Do you have one? Then please just: "
170+
page_fnc.puts ""
171+
page_fnc.puts " - [Edit on GitHub](https://github.com/kvz/phpjs/edit/master/functions/#{category}/#{function}.js)"
159172
page_fnc.puts ""
160173

161174
['1', '2', '3'].each do |i|

0 commit comments

Comments
 (0)