-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.nb
More file actions
82 lines (61 loc) · 2.54 KB
/
build.nb
File metadata and controls
82 lines (61 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 11.1' *)
(* Beginning of Notebook Content *)
Notebook[{
Cell[BoxData[RowBox[{RowBox[{"SetDirectory", "@", RowBox[{"NotebookDirectory", "[", "]"}]}], ";"}]], "Input", InitializationCell->True],
Cell[CellGroupData[{
Cell["Build", "Subsubsection"],
Cell[BoxData[RowBox[{RowBox[{"DeleteFile", "/@", RowBox[{"FileNames", "[", "\"*.paclet\"", "]"}]}], ";"}]], "Input"],
Cell[BoxData[RowBox[{"<<", "ForScience`"}]], "Input"],
Cell[BoxData[
RowBox[{"paclet", "=",
RowBox[{
"BuildPaclet", "[", "\[IndentingNewLine]",
RowBox[{
"\"ForScience\"", ",", "\[IndentingNewLine]",
RowBox[{"{", "UsageCompiler", ",", "CleanBuildActions", ",", "BuildTimeEvaluator", "}"}], ",", "\[IndentingNewLine]",
RowBox[{"{",
InterpretationBox[
TemplateBox[
{
" ",
"\" \"",
CheckboxBox[Dynamic@CurrentValue[EvaluationNotebook[], {TaggingRules, "Settings", "BuildDoc"}], BaselinePosition->Baseline],
TogglerBox[
Dynamic@CurrentValue[EvaluationNotebook[], {TaggingRules, "Settings", "BuildDoc"}],
{
False->StyleBox[DocumentationBuilder,Opacity@0.5],
True->DocumentationBuilder
}
]
},
"RowWithSeparators"
],
If[CurrentValue[EvaluationNotebook[], {TaggingRules, "Settings", "BuildDoc"}], DocumentationBuilder, Nothing]
],
"}"}]
}], "\[IndentingNewLine]",
"]"}]
}]
], "Input"]
}, Open ]],
Cell[CellGroupData[{
Cell["Install", "Subsubsection"],
Cell[BoxData[RowBox[{"UnloadPacletDocumentation", "[", "\"ForScience\"", "]"}]], "Input"],
Cell[BoxData[RowBox[{RowBox[{"PacletUninstall", "/@", RowBox[{"PacletFind", "[", "\"ForScience\"", "]"}]}], ";"}]], "Input"],
Cell[BoxData[RowBox[{"paclet", "=", "Last", "@", RowBox[{"Sort", "@", RowBox[{"FileNames", "[", "\"*.paclet\"", "]"}]}]}]], "Input"],
Cell[BoxData[RowBox[{"PacletInstall", "[", "paclet", "]"}]], "Input"],
Cell[BoxData[RowBox[{"LoadPacletDocumentation", "[", "\"ForScience\"", "]"}]], "Input"]
}, Open ]],
Cell[CellGroupData[{
Cell["Publish", "Subsubsection"],
Cell[BoxData[RowBox[{"PublishRelease", "[", RowBox[{"\"Token\"", "\[Rule]", RowBox[{"Import", "[", "\"token\"", "]"}]}], "]"}]], "Input"]
}, Open ]]
},
FrontEndVersion->"11.1 for Microsoft Windows (64-bit) (April 18, 2017)",
StyleDefinitions->"Default.nb",
Saveable->False,
TaggingRules->{"Settings"->{"BuildDoc"->False}}
]