Commit Graph

2245 Commits

Author SHA1 Message Date
Don Cross
2285e4032b Starting to compile generated C# code and reference it from unit test. 2019-10-10 15:19:47 -04:00
Don Cross
7bff374d57 Starting to add support for generating C# code.
Decided to move call to makedoc script from run script.
It was confusing that it was hidden inside unit_test_js,
especially because it invokes the code generator for
all supported languages.
2019-10-10 14:56:49 -04:00
Don Cross
e39cb78ad7 Added C# logo and included placeholder in README language table. 2019-10-10 14:18:18 -04:00
Don Cross
bd284e289b Need to clean up microsoft package after installing it.
Fails Travis CI test because verify_clean script sees
an untracked file in Git.
2019-10-09 21:17:22 -04:00
Don Cross
565860ced7 Trying an alternative way to use both C and C# in Travis CI. 2019-10-09 21:04:43 -04:00
Don Cross
6c398251ef Added call to csharp unit test from 'run' script. 2019-10-09 20:38:10 -04:00
Don Cross
5db8a91404 Verifying that I can build dotnet core 2.2 programs in Travis CI. 2019-10-09 20:28:46 -04:00
Don Cross
4eed90fd42 Fixed broken links. 2019-08-16 17:54:55 -04:00
Don Cross
11b4678d2b Include culminate.py in demo documentation. 2019-08-11 16:11:14 -04:00
Don Cross
cb22bd40eb Added culminate.py demo program. 2019-08-10 18:02:15 -04:00
Don Cross
b508069049 Added Python demo: seasons.py. 2019-08-10 17:38:04 -04:00
Don Cross
0a8e470fed Added Python demo program positions.py. 2019-08-10 16:38:38 -04:00
Don Cross
7ce7af4a89 Added riseset demo program for Python.
Fixed bug in demo utility function ParseArgs.
Added README.md for Python demos.
2019-07-28 21:33:39 -04:00
Don Cross
07c846bd83 Published npm package 1.0.2. 2019-07-26 17:47:25 -04:00
Don Cross
7e21a5abb5 Python moonphase demo now has passing unit test. 2019-07-26 17:23:05 -04:00
Don Cross
91aafeaba7 Starting to add Python demo programs.
Created skeleton test harness for validating the demo programs.
Created stub moonphase.py.
Copied correct demo program outputs from nodejs; will tweak as needed.
Call the Python demo test harness from the 'run' script.
2019-07-26 16:49:48 -04:00
Don Cross
ab648ac6ab Finished first pass of Python documentation.
Also make pydown.py generate an error, not just a warning,
for missing documentation, now that all the documentation is filled out.
2019-07-25 23:00:53 -04:00
Don Cross
44084cdf20 Python: added more documentation. 2019-07-19 21:33:19 -04:00
Don Cross
c64880a789 Python: added documentation for function SearchRiseSet. 2019-07-19 21:23:52 -04:00
Don Cross
91e4c7c8d2 Python: added documentation for function SearchHourAngle. 2019-07-19 21:11:54 -04:00
Don Cross
f7bda9890c Python: added documentation for function SearchPeakMagnitude. 2019-07-19 21:05:19 -04:00
Don Cross
972e43e952 Python: added documentation for function Illumination. 2019-07-19 21:01:13 -04:00
Don Cross
712f334146 Python: added documentation for class IlluminationInfo. 2019-07-19 20:57:20 -04:00
Don Cross
746dbe2409 Python documentation: remove extraneous blank lines from Markdown. 2019-07-17 20:21:36 -04:00
Don Cross
3ad7c7d9ec Python: Documented moon quarter type and functions. 2019-07-17 20:17:04 -04:00
Don Cross
8287a211a9 Python: added more documentation. 2019-07-17 20:09:34 -04:00
Don Cross
453e06e943 More documentation work.
In C code, replaced HTML italics with Markdown emphasis markers.
Added warnings for Python symbols with missing documentation.
Documented Python class Apsis.
2019-07-17 19:46:33 -04:00
Don Cross
8a18cdc58a Python: include documentation about function return values in Markdown. 2019-07-13 17:48:15 -04:00
Don Cross
7721f7a735 Python: added documentation for function SearchRelativeLongitude. 2019-07-13 17:02:39 -04:00
Don Cross
0d94f03f64 Added lots more Python documentation.
Changed visibility from a string 'morning'/'evening' to enum type.
Was not testing visibility was correct; now test.py does that.
Corrected a couple of minor things in C documentation.
2019-07-13 16:46:24 -04:00
Don Cross
c0b4d28805 Python: adding support for documenting class member functions. 2019-07-12 21:20:02 -04:00
Don Cross
959ea8d048 Python: generate markdown for error types. 2019-07-12 20:53:16 -04:00
Don Cross
00a80bd45a Python: escape examples as code blocks in Markdown. 2019-07-12 20:04:15 -04:00
Don Cross
f97096105a Python docs: support documentation of enumerated types. 2019-07-12 19:58:14 -04:00
Don Cross
033a2a1b53 pydown: Split classes into regular classes, enums, and errors.
Will generate different Markdown for my regular classes,
enumerated types, and error types.

Found out that 'from enum import IntEnum' pulls IntEnum
into the astronomy module and causes us to try to generate
documentation for it. Just keep it in the enum module.

Removed spurious dump of JavaScript README.md when verify_clean
fails.
2019-07-10 21:57:07 -04:00
Don Cross
1834b18ca0 pydown: Making a little progress converting Python docstrings to Markdown. 2019-07-10 20:19:26 -04:00
Don Cross
c7210a108f Python: replace _DEG2RAD, _RAD2DEG constants with math functions. 2019-07-09 22:09:53 -04:00
Don Cross
410cf99a5e Display the "All Tests Passed" ASCII art from a text file. 2019-07-09 20:38:54 -04:00
Don Cross
112366b66a Fixed cosmetic issues in demo pages after removing GitHub CSS. 2019-07-09 20:18:03 -04:00
Don Cross
1b0ba300d8 Removed all references to GitHub Pages, because it has been disabled.
I'm not going to use GitHub Pages after all, because it is
causing more problems than it is helping. All I really wanted
was a way to host live JavaScript browser examples.
I will find my own way of hosting just those.

The main problem is that GitHub pages uses a different flavor
of Markdown than GitHub. This makes it really difficult to get
something that works right across both.  In general, it doubles
how much stuff I have to look at when I make a cosmetic change.

So I have already turned off GitHub Pages on this repo,
and this commit removes all links and references to it.
2019-07-09 19:49:28 -04:00
Don Cross
c419304a55 Trying to get GitHub Pages error to go away. 2019-07-09 18:23:55 -04:00
Don Cross
fdbad8a252 Python type annotations are causing problems.
I'm not going to use type annotations in function signatures
because they are causing more problems than they are worth.
The last straw was that different versions of Python don't
generate the same text representation. This broke my Travis CI
tests.
2019-07-09 18:16:04 -04:00
Don Cross
e169f79fc8 Baby step in converting Python docstrings to Markdown. 2019-07-09 17:02:56 -04:00
Don Cross
284894c7e1 Updated Windows build process.
Fixed C compiler warnings that show up on Windows but not Linux.
Trim trailing whitespace for target code.
Generate Python documentation.
2019-07-09 16:35:15 -04:00
Don Cross
4ba3130ecc Python: experimenting with generation of Markdown documentation. 2019-07-08 21:59:29 -04:00
Don Cross
d66fc5a9ff Python: converted refraction types to enumerated type Refraction. 2019-07-08 16:18:34 -04:00
Don Cross
f381740976 Python: Convert rise/set direction kinds to an enumerated type Direction. 2019-07-08 16:05:56 -04:00
Don Cross
9384ce69b3 Python: rework apsis kind as an IntEnum called ApsisKind. 2019-07-08 15:59:24 -04:00
Don Cross
3ea7237e3f Python: eliminate BodyName array; just use IntEnum functionality. 2019-07-08 15:51:10 -04:00
Don Cross
b3e6f185b6 Reworking Python body codes as enumerated type Body.
This will help documentation generator pydown.py organize
body codes and other similar enumerations together as classes.
2019-07-08 15:37:56 -04:00