Skip to content

Commit

Permalink
Updated jsdocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenmonks committed Jun 17, 2024
1 parent b4f8b23 commit 31b14b1
Show file tree
Hide file tree
Showing 32 changed files with 193 additions and 6,246 deletions.
22 changes: 11 additions & 11 deletions docs/CNFProp.html

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions docs/CNFProp.js.html

Large diffs are not rendered by default.

104 changes: 52 additions & 52 deletions docs/Extensions.html

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions docs/extensions.js.html

Large diffs are not rendered by default.

26 changes: 8 additions & 18 deletions docs/global-validation.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/global.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interpret.js.html

Large diffs are not rendered by default.

59 changes: 31 additions & 28 deletions docs/lode.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/lurch-options.js.html

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions docs/module-GlobalValidation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/module-Interpretation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/module-Lode.html

Large diffs are not rendered by default.

715 changes: 0 additions & 715 deletions docs/module-MathLive.MathItem.html

This file was deleted.

539 changes: 0 additions & 539 deletions docs/module-MathLive.html

This file was deleted.

6 changes: 3 additions & 3 deletions docs/module-Parsing.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/module-Reporting.html

Large diffs are not rendered by default.

4,065 changes: 2 additions & 4,063 deletions docs/module-Utilities.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions docs/parsing.js.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/reporting.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tutorial-Getting Started Examples.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tutorial-Lurch Node REPL.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tutorial-Propositional Form.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/utils.js.html

Large diffs are not rendered by default.

383 changes: 0 additions & 383 deletions docs/utils_math-live.js.html

This file was deleted.

324 changes: 0 additions & 324 deletions docs/utils_utilities.js.html

This file was deleted.

2 changes: 1 addition & 1 deletion init.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
process.stdout.write(defaultPen(`Loading proofs ...\n`))
let start = Date.now()
////////////////////////////////////////////////////////////////////////////

//
// casesdoc = $(
// `
// {
Expand Down
27 changes: 0 additions & 27 deletions jsdoc-conf.json

This file was deleted.

19 changes: 6 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lde",
"name": "lab",
"version": "0.1.0",
"description": "Lurch Deductive Engine (LDE)",
"description": "Lurch Validation Tools",
"type": "module",
"directories": {
"doc": "docs",
Expand All @@ -17,23 +17,16 @@
"puppeteer": "^15.1.1",
"tidy-jsdoc": "^1.4.1"
},
"scripts": {
"test": "node src/database/generate.js && node --trace-warnings tests/all-in-puppeteer.js",
"docs": "rm -f tutorials/output/*.md && node scripts/pre-docs.js && rm -rf docs && jsdoc src/* -d docs -R doc-main.md -c jsdoc-conf.json -u tutorials/output/ && node scripts/post-docs.js",
"build-db": "node src/database/generate.js",
"show-docs": "open docs/index.html",
"test-server": "node src/database/generate.js && node tests/test-server.cjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lurchmath/lde.git"
"url": "git+https://github.com/lurchmath/lab.git"
},
"author": "Nathan Carter (ncarter@bentley.edu)",
"author": "Ken Monks (monks@scranton.edu)",
"license": "LGPL-3.0",
"bugs": {
"url": "https://github.com/lurchmath/lde/issues"
"url": "https://github.com/lurchmath/lab/issues"
},
"homepage": "https://github.com/lurchmath/lde#readme",
"homepage": "https://github.com/lurchmath/lab#readme",
"dependencies": {
"algebrite": "^1.4.0",
"chalk": "^5.0.1",
Expand Down
7 changes: 5 additions & 2 deletions src/lode.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,10 @@ rpl.defineCommand( "makedocs", {
action() {
console.log(defaultPen('Building docs...'))
try {
execStr('rm -rf docs && jsdoc ./* -d docs -c utils/jsdoc-conf.json -u tutorials/ && node utils/post-docs')
execStr(
`rm -rf ../docs &&
jsdoc .. -d ../docs/ -c ../utils/jsdoc-conf.json -u ../tutorials/ &&
node ../utils/post-docs`)
console.log(defaultPen('...done'))
} catch (err) {
console.log('Error building docs.')
Expand All @@ -610,7 +613,7 @@ rpl.defineCommand( "makedocs", {
rpl.defineCommand( "showdocs", {
help: "Open the jsdocs index.html page in the browser.",
action() {
exec('open docs/index.html')
exec('open ../docs/index.html')
this.displayPrompt()
}
})
Expand Down
11 changes: 6 additions & 5 deletions utils/jsdoc-conf.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"plugins": ["plugins/markdown"],
"opts": {
"_template": "../../node_modules/clean-jsdoc-theme",
"template": "../../node_modules/tidy-jsdoc",
"_template": "../node_modules/clean-jsdoc-theme",
"template": "../node_modules/tidy-jsdoc",
"prism-theme": "prism-default",
"encoding": "utf8",
"recurse": true,
"verbose": false,
"theme_opts": {
"default_theme": "dark"
}
},
"readme": "../README.md"
},
"markdown": {
"hardwrap": false,
Expand All @@ -28,8 +29,8 @@
},
"source": {
"exclude": [
"./scripts/acidtests.js",
"./scripts/post-docs.js"
"../utils",
"../node_modules"
]
}
}
31 changes: 22 additions & 9 deletions utils/lurchmath config/lde-cdn.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@

/**
* This file imports all needed classes from the main branch of the LDE repo.
* We do it in this file so that anywhere else in the app, it can just load this
* This file imports all needed classes from the main branch of the LDE repo. We
* do it in this file so that anywhere else in the app, it can just load this
* file and know it's getting the right classes. Then if we need to change the
* URL, we can do it here in one place, rather than in many places throughout
* the codebase.
*/

// local imports (uncomment to use)
export {
LogicConcept, MathConcept,
Environment, Declaration, Expression, LurchSymbol
} from '../lde/src/index.js'
// from 'https://cdn.jsdelivr.net/gh/lurchmath/lde@master/src/index.js'
MathConcept, LogicConcept, Expression, Declaration, Environment, LurchSymbol,
Matching, Formula, Scoping, Validation, Application
} from '../../lde/src/index.js'
export { Problem } from '../../lde/src/matching/problem.js'
export { BindingExpression } from '../../lde/src/binding-expression.js'
export { default } from '../../lde/src/validation/conjunctive-normal-form.js'

import branchLDE from '../lde/src/experimental/global-validation.js'
//from 'https://cdn.jsdelivr.net/gh/lurchmath/lde@85e7368b912116420a2dc7475c616a721ec38ba1/src/experimental/global-validation.js'
export const LDE = branchLDE
/* From CDN (uncomment to use)
export {
MathConcept, LogicConcept, Expression, Declaration, Environment, LurchSymbol,
Matching, Formula, Scoping, Validation, Application
} from
'https://cdn.jsdelivr.net/gh/lurchmath/lde@master/src/index.js'
export { Problem } from
'https://cdn.jsdelivr.net/gh/lurchmath/lde@master/src/matching/problem.js'
export { BindingExpression } from
'https://cdn.jsdelivr.net/gh/lurchmath/lde@master/src/binding-expression.js'
export { default } from
'https://cdn.jsdelivr.net/gh/lurchmath/lde@master/src/validation/conjunctive-normal-form.js'
*/

0 comments on commit 31b14b1

Please sign in to comment.