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
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
28
28
29
29
30
30
desc"Build jekyll source by php.js source"
@@ -63,6 +63,10 @@ task :build do
63
63
page_fncs.puts"- /packages"
64
64
page_fncs.puts"---"
65
65
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
+
66
70
67
71
Dir.chdir("../functions")
68
72
Dir.glob("*/").each{ |dir|
@@ -154,8 +158,17 @@ task :build do
154
158
page_fnc.puts"#{contents}"
155
159
page_fnc.puts"{% endcodeblock %}"
156
160
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)"
0 commit comments