Commit Graph

292 Commits (cda229ac1229df1ed959003cfcb3dc1a18da26ff)

Author SHA1 Message Date
Henrik Böving 19ee7dfd97 fix: Safari issues reported by Wojciech Nawrocki 2022-07-22 17:27:35 +02:00
Henrik Böving 5a65c64d4c fix: alignment of navbar 2022-07-22 17:18:09 +02:00
Henrik Böving 95b79c1744 fix: Fix linking of importedBy modules 2022-07-22 17:03:24 +02:00
Henrik Böving 6be2e4dc4e feat: importedBy via Javascript 2022-07-22 16:56:51 +02:00
Henrik Böving 2ffff99f90 feat: instances from JSON 2022-07-22 16:15:37 +02:00
Henrik Böving bb9b55ef2c feat: Step 1 for full separate builds with global info 2022-07-22 14:48:36 +02:00
Henrik Böving c29cf7b70c feat: index shall not depend on importing things 2022-07-22 00:34:13 +02:00
Henrik Böving c35d750e67 feat: Single shall not be transitive 2022-07-21 23:15:20 +02:00
Henrik Böving 0cff3d7cda fix: Javascript errors in the navbar 2022-07-21 23:01:15 +02:00
Henrik Böving eea23d332a feat: Fully separated builds 2022-07-21 22:43:33 +02:00
Henrik Böving 80cb92eb94 feat: Use iframe for navbar to move it into the finalize stage 2022-07-21 22:06:26 +02:00
Henrik Böving 80cf5bc96f feat: Renamed finalize to index 2022-07-21 21:19:37 +02:00
Henrik Böving 71af8db54b feat: Declaration data into separate directory 2022-07-21 21:05:19 +02:00
Henrik Böving 601b895e89 feat: Inductive constructor doc strings 2022-07-21 20:23:27 +02:00
Henrik Böving 9b2326dec3 feat: merge init and finalize 2022-07-21 19:07:35 +02:00
Henrik Böving 4bc7a682ec feat: implementation of separate staged builds 2022-07-21 18:26:01 +02:00
Henrik Böving fbbdb21795 fix: remove redundant argument 2022-07-21 02:25:26 +02:00
Henrik Böving 9962e5037a prettify: Make the Output.lean refactor prettier 2022-07-21 02:21:07 +02:00
Henrik Böving 25b1ddb66b feat: Preparations to split doc-gen build process 2022-07-21 01:40:04 +02:00
Henrik Böving 5f45c8dadc chore: update toolchain 2022-07-20 16:29:18 +02:00
Henrik Böving 351cbc56b6 chore: update lean nightly 2022-07-04 09:11:10 +02:00
Henrik Böving 5b56be76f2 chore: Cleanup HTML syntax and pretty printing 2022-06-21 20:54:29 +02:00
Henrik Böving be3caa9e1a feat: Basic semantic highlighting support 2022-06-20 22:21:48 +02:00
Henrik Böving 49b2f019b7 feat: type hovers 2022-06-20 19:21:50 +02:00
Henrik Böving 9f50966339 feat: initial LeanInk HTML generation 2022-06-20 18:39:55 +02:00
Henrik Böving 199c7af17a feat: LeanInk all the files, HTML generation missing 2022-06-20 00:31:09 +02:00
Henrik Böving 7c9237ffb4 chore: update compiler and lake 2022-06-19 16:41:59 +02:00
Henrik Böving e8fb9a7f0f chore: update to latest nightly 2022-05-27 22:19:34 +02:00
Henrik Böving 036769357a doc: Document Process.Attributes 2022-05-20 09:41:52 +02:00
Henrik Böving e31d544e27 doc: Process.Analyze 2022-05-20 09:30:59 +02:00
Henrik Böving 56bd8c3ced doc: Process.Base 2022-05-20 09:23:33 +02:00
Henrik Böving d519ef6b58 fix: adapt the rest of the program to the process refactor 2022-05-20 00:36:43 +02:00
Henrik Böving b58b1b315b refactor: finally split upt the process module 2022-05-20 00:36:21 +02:00
Henrik Böving 8e70777059 chore: copyright header 2022-05-19 21:56:43 +02:00
Henrik Böving 12fe918b2d doc: Output.Template 2022-05-19 21:53:03 +02:00
Henrik Böving 8e4b7bdb50 doc: Output.Structure 2022-05-19 21:52:54 +02:00
Henrik Böving 3fd17bd261 doc: Output.NotFound 2022-05-19 21:49:50 +02:00
Henrik Böving 94ce87d11a doc: Output.Navbar 2022-05-19 21:49:25 +02:00
Henrik Böving 20e136bb27 refactor: centralized methods for internal linking infrastructure 2022-05-19 21:49:16 +02:00
Henrik Böving e0bf4ad28c doc: Output/Definition 2022-05-19 21:07:44 +02:00
Henrik Böving bdd4a5f612 doc: Output.Base 2022-05-19 21:05:17 +02:00
Henrik Böving 0b8f7a1397 doc: Output top level module 2022-05-19 20:54:42 +02:00
Henrik Böving 653c67e9b7 doc: SourceLinker 2022-05-19 20:52:54 +02:00
Henrik Böving 43f7786523 refactor: pull source linker into submodule 2022-05-19 20:48:26 +02:00
Henrik Böving c05a9cf5e5 doc: Load 2022-05-19 20:45:12 +02:00
Henrik Böving 5fd076530e doc: IncludeStr 2022-05-19 20:41:45 +02:00
Henrik Böving 279df92555 refactor: restructure the modules 2022-05-19 20:41:07 +02:00
Henrik Böving 2e4642e17c chore: port legacy syntax to rawIdent 2022-05-19 17:16:40 +02:00
Sebastian Ullrich 41f6eb0835 refactor: use `rawIdent` 2022-05-19 11:20:58 +02:00
Henrik Böving 24a24d75c7 feat: csimp attribute 2022-04-19 20:28:30 +02:00
Henrik Böving 9a6bf85588 chore: update toolchain 2022-04-19 20:18:28 +02:00
Henrik Böving ea66f7f243 feat: export attribute 2022-04-12 19:11:45 +02:00
Henrik Böving a7c00d95e6 feat: Render doc comments for structure fields 2022-04-09 21:39:34 +02:00
Henrik Böving 89dd2fa46e chore: upgrade compiler version 2022-04-09 19:30:33 +02:00
Henrik Böving 211ade7828 feat: doc strings in ctors and structure fields 2022-04-09 17:27:06 +02:00
Henrik Böving 3ac6ddd1ab fix: port the SITE_ROOT fix to find.js 2022-04-07 13:14:01 +02:00
Henrik Böving 67402506c7 fix: links in search 2022-04-07 12:44:33 +02:00
Henrik Böving 06c20ee46f dynamically change SITE_ROOT since we are relative now 2022-04-07 12:39:32 +02:00
Siddharth Bhat 4bc149a1fb Fix diff nits 2022-04-07 00:53:06 +01:00
Siddharth Bhat 9570f25312 cleanup code 2022-04-07 00:48:12 +01:00
Siddharth Bhat 9eec1cf1ad URLs now work; Data fetching does not? 2022-04-07 00:31:27 +01:00
Henrik Böving 9cc4c787e6 feat: lake integration 2022-03-06 18:51:06 +01:00
Henrik Böving 5535616725 chore: Bump toolchain 2022-03-06 16:48:49 +01:00
Xubai Wang 5f7d380ab7 refactor: make include_str relative to file 2022-02-26 09:41:25 +08:00
Henrik Böving 34d2239b68 feat: actual CLI 2022-02-23 22:54:10 +01:00
Henrik Böving 9dd5e316c1
Merge pull request #38 from xubaiw/win-find
Windows find support among other things.
2022-02-23 19:44:47 +01:00
Xubai Wang dca4e42665 fix: filter out nonexist modules 2022-02-23 23:33:34 +08:00
Xubai Wang a5dfba5f1c fix: fix navbar centering 2022-02-23 23:09:10 +08:00
Xubai Wang 2b217ecda0 fix: fix find search 2022-02-23 05:32:37 +08:00
Xubai Wang a18e343829 refactor: change find syntax 2022-02-23 04:26:20 +08:00
Xubai Wang 004977e6e4 refactor: use strict match for find 2022-02-22 15:01:14 +08:00
Xubai Wang f23556739f refactor: clean up javascript code 2022-02-22 12:40:14 +08:00
Xubai Wang 9e867f5151 refactor: make site-root an actual file 2022-02-21 23:29:23 +08:00
Siddharth Bhat 91891fc4fd Generate relative paths for documentation.
We keep track of the current nesting depth in our Context,
and use this to generate the correct relative path to the root.
2022-02-21 10:14:15 +00:00
Xubai Wang bc0dd3b48a feat: add src endpoint 2022-02-21 01:38:12 +08:00
Xubai Wang 59707cda58 refactor: use js for find 2022-02-21 01:12:49 +08:00
Xubai Wang 5e93038023 refactor: use js modules 2022-02-21 00:06:15 +08:00
Xubai Wang 842e243241 revert: use bmp extension again 2022-02-20 23:45:31 +08:00
Xubai Wang 73f7906357 refactor: move script into head 2022-02-20 23:42:46 +08:00
Xubai Wang a89cf7d7a4 refactor: move siteRoot to separate file 2022-02-20 23:24:08 +08:00
Xubai Wang b9c5109aaf pref: prefetch search data 2022-02-20 23:05:35 +08:00
Xubai Wang 9f13773a7d refactor: use json ext instead of bmp 2022-02-20 22:54:57 +08:00
Henrik Böving a86c384354 fix: Readd equations for instances 2022-02-20 13:52:57 +01:00
Henrik Böving b87c1cc1de feat: Better equation Handling
The equation content is now escaped, furthermore there is a limit
for the length of an equation so we don't just fill everything with
uselessly big equations nobody can read anyways.
2022-02-20 13:45:18 +01:00
Xubai Wang 2151813fe5 feat: allow intra link in code block 2022-02-20 13:28:48 +08:00
Xubai Wang ad4d77a9c9 fix: change same end maching 2022-02-20 11:43:27 +08:00
Xubai Wang 189e5dacdb Merge remote-tracking branch 'upstream/main' into docstring 2022-02-20 03:40:55 +08:00
Xubai Wang 3acfc510b4 fix: no overmatch for intra link 2022-02-20 03:28:03 +08:00
Xubai Wang 5e550c7833 refactor: docstring between basic and extra info
clean up code
2022-02-20 03:14:58 +08:00
Henrik Böving d0714c3aab chore: Don't hard code the path seps in the build dir 2022-02-19 18:15:43 +01:00
Xubai Wang 1ef736c014 fix: use flattened Html element 2022-02-19 02:07:25 +08:00
Xubai Wang c31aef8e87 fix: remove redundant link to parent module 2022-02-19 01:54:20 +08:00
Xubai Wang 2f5a95b312 fix: add nav link to non leaf node modules 2022-02-18 14:12:05 +08:00
Xubai Wang 3687b3466a refactor: clean up docstring module 2022-02-18 12:52:01 +08:00
Xubai Wang d8a5f52c10 fix: fix docstring order 2022-02-18 11:28:44 +08:00
Xubai Wang 0724806fe6 Merge branch 'docstring' of https://github.com/xubaiw/doc-gen4 into docstring 2022-02-18 04:01:34 +08:00
Xubai Wang cce4285c96 fix: intersperse code contents 2022-02-18 04:01:31 +08:00
王虚白 5ce1ce9fe7
Merge branch 'main' into docstring 2022-02-18 03:38:20 +08:00
Xubai Wang 5dc3ab855f feat: config mathjax like doc-gen 2022-02-18 03:27:00 +08:00
Xubai Wang 9550d1c92e refactor: use ## for intra doc 2022-02-18 03:26:38 +08:00
Xubai Wang 89f5951f2d feat: add mathjax equation support 2022-02-18 03:10:48 +08:00
Henrik Böving 2dac93d360 fix: fix noncomputable
Also address the changes made to module doc until doc strings are implemented.
2022-02-17 18:59:42 +01:00
Xubai Wang 0b9a9f0bdc fix: remove intra link in code block 2022-02-18 01:39:02 +08:00
Xubai Wang 11bb2af57a feat: add auto link 2022-02-18 00:46:02 +08:00
Xubai Wang 97ddf05ab6 fix: add root to relative href 2022-02-17 21:26:02 +08:00
Xubai Wang 1729f4aa71 fix: fix docstring heading id 2022-02-17 15:26:17 +08:00
Xubai Wang 5790172eab fix: doc string for all DocInfo 2022-02-17 13:53:29 +08:00
Xubai Wang b7c6a98969 refactor: separate docstring code 2022-02-17 13:47:38 +08:00
Xubai Wang d3ce268d63 feat: mod doc heading attributes 2022-02-17 08:16:02 +08:00
Xubai Wang 385a38a003 feat: basic mod doc without attributes 2022-02-17 08:16:02 +08:00
Xubai Wang 8da2e2a63d feat: basic docstring support 2022-02-17 08:16:02 +08:00
Henrik Böving 28dfc14530 fix: arity in the extern attribute 2022-02-16 21:24:42 +01:00
Henrik Böving e6cc03b095 fix: Fix computability 2022-02-13 15:52:09 +01:00
Henrik Böving 5fd2585c55 feat: Implement the rest of search 2022-02-13 15:42:15 +01:00
Henrik Böving c42db4328a feat: export search.js info 2022-02-13 15:03:49 +01:00
Henrik Böving 4b9b7d77d5 chore: Update doc-gen search js 2022-02-13 14:25:37 +01:00
Henrik Böving d700da7284 feat: Attributes 2022-02-13 03:32:53 +01:00
Henrik Böving 59e50943d6 feat: mark noncomputable defs and instances 2022-02-12 15:57:45 +01:00
Henrik Böving d39b14cf7a chore: bump toolchain, bye auto pure 2022-02-12 15:09:13 +01:00
Henrik Böving 00bf10c6f0 chore: bump toolchain 2022-02-09 22:45:28 +01:00
Henrik Böving 8059940c30 feat: class inductives 2022-02-06 20:14:36 +01:00
Henrik Böving 27f8b50763 feat: tag abbrevs 2022-02-06 17:28:56 +01:00
Henrik Böving c2d18fe3b1 feat: tag declarations with unsafe and partial 2022-02-06 17:06:22 +01:00
Henrik Böving 5ef4ead859
Merge branch 'main' into equations 2022-02-05 02:31:00 +01:00
Henrik Böving 117c94031f feat: equations for simple functions
Functions without pattern matching or wf recursion don't have
any equational lemma autogenerated for themselves so we have to
generate it explicitly. The implementation is largely adapted from
structural equation code in the compiler.
2022-02-05 02:26:03 +01:00
Henrik Böving 419c1eb1e6 feat: equations for instances 2022-02-04 22:48:08 +01:00
Henrik Böving f54c192e6f feat: equations
Equation implementation for definitions, right now lots of definitions
simply dont generate equational lemmata at all so lots are left
without them.
2022-02-04 22:36:34 +01:00
Henrik Böving 4d63f90449 feat: Custom structure ctors
Add the ability to show customly named structure constructors as well
as a little cosmetic change to how structure fields are displayed.
2022-02-02 12:53:04 +01:00
Gabriel Ebner 5ed0a8e99f fix: do not show top-level modules twice in navbar 2022-01-20 15:38:48 +01:00
Gabriel Ebner 69b5ee76d3 chore: use attribute spreads 2022-01-20 15:38:48 +01:00
Gabriel Ebner e350c16417 feat: `<div [attrArray] />` 2022-01-20 15:16:28 +01:00
Henrik Böving 9ac4eb5062 feat: imports, imported by 2022-01-16 14:22:53 +01:00
Henrik Böving 735bfa35a7 chore: update compiler version 2022-01-15 15:35:52 +01:00
Henrik Böving 4a3e22490f fix: Printing of argument names with macro scopes
Previously we would print all names with macro scopes (after removing
the macro related stuff) which could cause confusion if for example
there was an actual parameter named `a` and one named `a` but
autogenerated by Lean itself. Now we only try to print names with
macro scopes iff they are names of type class parameters. Otherwise
the rest of the Expr is moved behind the :.
2022-01-15 15:12:55 +01:00
Henrik Böving f7f8138e09 feat: basic source links 2022-01-14 13:36:41 +01:00
Henrik Böving 0754b43873 feat: fix links to inductive ctors and structure fields 2022-01-09 14:07:50 +01:00
Henrik Böving 6128791cce chore: Sort the declarations internally already 2022-01-07 18:25:26 +01:00
Henrik Böving 2de568d5ca feat: List of declarations in internal navbar 2022-01-07 17:43:49 +01:00
Henrik Böving 82f63cb613 feat: parameterize the URL root for links in the HTML 2022-01-07 10:56:39 +01:00
Henrik Böving ec4d114b43 feat: show all declarations in the correct order
Closes: #7
2022-01-06 17:30:33 +01:00
Henrik Böving b777250338 feat: list instances of classes 2022-01-06 14:51:46 +01:00
Henrik Böving 87f959e11d feat: basic structure like information for classes 2022-01-06 14:28:41 +01:00
Henrik Böving f71b2ee8b9 chore: Remove obsolete TODOs 2022-01-06 02:05:23 +01:00
Henrik Böving 8a58752c56 feat: display structures and their fields properly 2022-01-06 01:44:11 +01:00
Henrik Böving 3adb8e71d1 feat: Show inductive constructors properly
Closes: #2
2022-01-03 18:22:12 +01:00
Henrik Böving 02d8c528d9 feat: Show arguments of types of decls separately 2022-01-03 14:25:55 +01:00
Henrik Böving 5e0956c4b0 feat: Proper linking of all constants
Previously constants in function applications where either not linked
at all or linked in a weird way, this change fixes it by making use of
a (as of now umerged) compiler modification as well as Lean.Widget's
TaggedText.
2022-01-03 14:25:50 +01:00
Henrik Böving 0efbcd1f60 feat: Newline free HTML formatting
Some of the HTML elements we are generating are newline sensitive
which requires the HTML to String formatter to optionally omit
additional newlines.
2021-12-25 14:04:35 +01:00
Henrik Böving d18e71966c feat: Store Format instead of Syntax in DocInfo 2021-12-18 00:01:31 +01:00
Henrik Böving 4380fe088d feat: Sanitize Syntax 2021-12-17 23:53:06 +01:00