@@ -10,7 +10,7 @@ using Random, Dates, LinearAlgebra, DelimitedFiles
1010
1111# to override display_dict below
1212import Documenter. Utilities: display_dict, limitstringmime
13- using Base64: stringmime
13+ using Base64: stringmime
1414
1515function display_dict (p:: PlotlyBase.Plot )
1616 out = Dict {MIME,Any} ()
@@ -39,7 +39,7 @@ function single_example_file(filename::String)
3939
4040 # Read lines from a files
4141 fulltext = open (
42- f-> read (f, String),
42+ f -> read (f, String),
4343 joinpath (THIS_DIR, " .." , " examples" , filename),
4444 " r"
4545 )
@@ -55,19 +55,19 @@ function single_example_file(filename::String)
5555 else
5656 first_line = findfirst (x -> match (regex, x) != = nothing , all_lines)
5757 if first_line != = nothing
58- preamble = strip (join (all_lines[1 : first_line- 1 ], " \n " ))
58+ preamble = strip (join (all_lines[1 : first_line - 1 ], " \n " ))
5959 write_example (preamble)
6060 end
6161 end
6262
6363 while true
6464 # Find next function name (break if none)
65- l = findnext (x -> match (regex, x) != = nothing , all_lines, l+ 1 )
65+ l = findnext (x -> match (regex, x) != = nothing , all_lines, l + 1 )
6666 if l == 0 || l === nothing
6767 break
6868 end
6969 # find corresponding end for this function
70- end_l = findnext (x -> match (regex_end, x) != = nothing , all_lines, l+ 1 )
70+ end_l = findnext (x -> match (regex_end, x) != = nothing , all_lines, l + 1 )
7171
7272 # Pull out function text
7373 func_block = join (all_lines[l: end_l], " \n " )
9898handle_examples ()
9999
100100makedocs (
101- sitename = " PlotlyJS" ,
102- format = Documenter. HTML (
103- assets = [
101+ sitename= " PlotlyJS" ,
102+ format= Documenter. HTML (
103+ assets= [
104104 asset (" https://cdn.plot.ly/plotly-1.54.7.js" )
105105 ]
106106 ),
107- modules = [PlotlyJS, PlotlyBase],
107+ modules= [PlotlyJS, PlotlyBase],
108108 linkcheck= true ,
109- pages = [
109+ pages= [
110110 " Home" => " index.md" ,
111111 " User Guide" => [
112112 " Preliminaries" => " basics.md" ,
113113 " Building Blocks" => " building_traces_layouts.md" ,
114114 " Putting it together" => " syncplots.md" ,
115115 " Working with plots" => " manipulating_plots.md" ,
116- " Styles" => " styles.md" ,
117116 " Contributing" => " contributing.md" ,
118117 ],
119118 " Examples" => [
@@ -141,10 +140,10 @@ makedocs(
141140# Documenter can also automatically deploy documentation to gh-pages.
142141# See "Hosting Documentation" and deploydocs() in the Documenter manual
143142# for more information.
144- #= deploydocs(
143+ #= deploydocs(
145144 repo = "<repository url>"
146- )=#
145+ ) =#
147146
148147deploydocs (
149- repo = " github.com/JuliaPlots/PlotlyJS.jl.git" ,
148+ repo= " github.com/JuliaPlots/PlotlyJS.jl.git" ,
150149)
0 commit comments