Commit Graph

186 Commits

Author SHA1 Message Date
Anthony Johnson
87a16ea421 Use more proper slugging on filenames for object
This resolves some issues with special characters in paths on Windows based
systems. It replaces special characters and unicode characters to ensure paths
are predictable.
2015-08-18 18:10:25 -07:00
Anthony Johnson
436eb28d9f Parse out doc id prefixes and add reference types 2015-08-18 14:30:08 -07:00
Anthony Johnson
9676bd011c Doc comment parsing and some optimizations to regex substitutions and patterns
Relies on regex replace and multiple replacement substitions, rather than
iterating over the pattern and applying logic to the found patterns.

Handles:

 * see & seealso - creates a reference link
 * paramref & typepararef - we can't reference params in sphinx, so this just
   replaces with bold text
2015-08-18 12:22:46 -07:00
Eric Holscher
460aea6a8b Stub out XML parsing 2015-08-18 12:22:46 -07:00
Eric Holscher
f8e1d7435c Kill redefined ref_name 2015-08-17 15:04:15 -07:00
Eric Holscher
ee6a2ada3c Use ref_name instead of hacking specific name 2015-08-17 15:02:06 -07:00
Eric Holscher
c14ae7e8f1 Fix linting 2015-08-17 13:03:21 -07:00
Eric Holscher
05d891915f Kill wrong bash prefix 2015-08-17 12:54:10 -07:00
Anthony
d4dd35a0e2 Merge pull request #20 from rtfd/appveyor
Add Windows builds
2015-08-17 11:01:31 -07:00
Eric Holscher
d1fdfa1526 Fix call to join 2015-08-14 14:58:13 -07:00
Eric Holscher
b66a83b550 Fix shell=True 2015-08-14 14:57:15 -07:00
Eric Holscher
dfbae94963 Handle empty objects list 2015-08-14 14:54:28 -07:00
Eric Holscher
243549f2fe Add shell=True to the docfx call 2015-08-14 14:45:49 -07:00
Eric Holscher
3c89158662 Explicitly call bash for docfx 2015-08-14 14:34:58 -07:00
Eric Holscher
d7945ac5ba Explicitly call bash for docfx 2015-08-14 14:34:46 -07:00
Eric Holscher
999a031108 Only open files for writing 2015-08-10 20:16:40 -07:00
Eric Holscher
220599c22f Attempt to fix path names on Windows. 2015-08-10 20:03:46 -07:00
Eric Holscher
a21f88c806 Add comment 2015-08-05 10:10:32 -07:00
Eric Holscher
b4fdac80d3 Raise exception properly on Python 3 2015-08-05 10:09:07 -07:00
Eric Holscher
acef865e6f Fix up python 3 support.
This works for everything except epyparse currently.
2015-08-04 10:19:17 -07:00
Eric Holscher
2152ae373b Add support for optionally raising error. 2015-08-03 14:13:08 -07:00
Eric Holscher
f9d4d8c18d Clean up tox file 2015-08-03 14:01:54 -07:00
Eric Holscher
0c1583ac40 Add proper exceptions 2015-08-03 13:55:33 -07:00
Eric Holscher
6a67c16642 Fix the last of the linting errors 2015-08-03 13:12:34 -07:00
Eric Holscher
e397229177 Be more defensive in deletes 2015-08-03 12:11:47 -07:00
Eric Holscher
e00fc127cc Clean up errors caught by linting 2015-08-03 11:59:02 -07:00
Eric Holscher
d1d452a0a4 Add ability for per-mapper cleanup tasks. 2015-08-03 10:36:10 -07:00
Eric Holscher
118fa50e11 Fix circular import 2015-08-03 10:35:26 -07:00
Eric Holscher
095b1e5b29 Add Indentity as the default dotnet testing project.
Also lots of little cleanup to remove errors on those builds.
2015-07-20 14:48:25 -07:00
Eric Holscher
1df370b682 Don’t assume we have defaults for all types. 2015-07-20 11:51:41 -07:00
Eric Holscher
c81ab2873d Add default ignore patterns. 2015-07-20 11:51:41 -07:00
Eric Holscher
82945f6068 Fix syntax parsing 2015-07-20 11:51:41 -07:00
Anthony Johnson
0dd05ba0aa Fix environment call for failing tests 2015-07-20 11:51:41 -07:00
Anthony Johnson
e021fbea6c Changes to support docfx
Note: This requires a patch on the docfx executable, the hashbang line is
missing, creating an execution failure

This makes the executed command docfx, instead of BuildMeta. It adds some error
checking and reporting to output as well.

This is a work in progress, the output format seems to have changed again.
2015-07-20 11:51:41 -07:00
Eric Holscher
481bf32b15 Match ignore patterns again full filename 2015-07-20 10:50:35 -07:00
Eric Holscher
2abc73ce30 Use proper passed in patterns 2015-07-08 15:14:59 -07:00
Eric Holscher
c20783558e Add vbproj to dotnet default mapping 2015-07-08 15:13:24 -07:00
Eric Holscher
cb28412dfd Fix test mocks 2015-07-07 16:32:38 -07:00
Eric Holscher
6f6e09b1f6 Properly handle multiple file patterns. 2015-07-07 16:19:25 -07:00
Eric Holscher
dac1ee0f2e Properly look for substring 2015-07-07 15:48:00 -07:00
Eric Holscher
30e4847898 Add basic tests & small output changes for auto-adding TOCTree 2015-07-07 15:43:12 -07:00
Eric Holscher
ba1a09a8d1 Add ability to auto-inject AutoAPI into TocTree 2015-07-07 15:30:16 -07:00
Eric Holscher
1eb7f4c6fa Merge branch 'master' of github.com:rtfd/sphinx-autoapi 2015-07-06 16:17:29 -07:00
Eric Holscher
9163a0088a Catch TypeError in JS mapper. 2015-06-22 23:25:25 -04:00
Eric Holscher
19c79222a9 Refactor integration tests to use fixture data.
This removes dependence on real tooling.
The main downside is that it’s fragile to output changes in the tooling.
Not a lot we can do though,
other than have real integration tests, also.
2015-06-22 23:24:59 -04:00
Eric Holscher
63a7c499fc Resort imports 2015-06-21 23:05:03 -04:00
Eric Holscher
51fe162fb0 Cleanup to address review 2015-06-21 23:03:45 -04:00
Eric Holscher
4e9f1c02ea More small dotnet cleanup 2015-06-21 22:58:29 -04:00
Eric Holscher
463816673d Small dotnet updates 2015-06-21 22:03:14 -04:00
Eric Holscher
8770a04bf8 Update dotnet codebase for new tooling 2015-06-14 16:14:16 -04:00
Eric Holscher
5d861d13d8 Clean up handling of python args/params. 2015-06-10 14:37:17 -07:00
Eric Holscher
685665535f Rename files 2015-06-10 14:23:58 -07:00
Eric Holscher
f60b7d8880 Add ability to configure options of display of objects. 2015-06-10 13:58:52 -07:00
Eric Holscher
bdae9f083c Add ability to hide undocumented methods, etc. 2015-06-10 13:33:42 -07:00
Eric Holscher
732942828f Use ordered dicts for mapping. 2015-06-10 13:33:28 -07:00
Eric Holscher
1cde5590eb Clean up how we render templates.
* Add top_level_object as global concept.
* Fix toctree generation
* Add passing of options to rendering
2015-06-10 13:13:34 -07:00
Eric Holscher
4f6474440d Add some docstrings 2015-06-10 13:12:18 -07:00
Eric Holscher
057100b1ee Rename base objects to be more descriptive. 2015-06-10 11:53:09 -07:00
Eric Holscher
59add63ae4 Refactor DotNet Domain, and clean up tests. 2015-06-10 11:48:15 -07:00
Eric Holscher
0c1bcece23 Small domain cleanup 2015-06-10 11:47:50 -07:00
Eric Holscher
d0cb6ae6e0 Clean up AutoAPI output and naming 2015-06-10 11:35:54 -07:00
Eric Holscher
d424993e8c Safer file writing 2015-06-10 11:35:30 -07:00
Eric Holscher
6c204dc570 Update go Domain and add basic Go test 2015-06-10 11:04:19 -07:00
Eric Holscher
a94e3d8c60 Clean up warnings and move jinja_env onto base 2015-06-10 11:01:06 -07:00
Eric Holscher
c02cd9d32e Add testing for template overrides. 2015-06-10 10:33:18 -07:00
Eric Holscher
5ca2ee76a5 Refactor into nicer top-level interface to the Domains.
Languages refactored:

* Python
* JS
2015-06-06 16:11:49 -07:00
Eric Holscher
1d3bd2012e Refactor some settings and jinja env. 2015-06-06 13:44:01 -07:00
Eric Holscher
9bc6072283 Add initial javascript support with jsdoc 3. 2015-06-06 13:08:44 -07:00
Eric Holscher
df6e952a51 Fix python calls to create_class 2015-06-01 14:14:21 -07:00
Eric Holscher
c3239118b0 Move base into domains directory. 2015-06-01 14:14:15 -07:00
Eric Holscher
426c3db619 Kill unused utils file. 2015-06-01 14:13:54 -07:00
Anthony Johnson
3e5eaf2180 Merge branch 'go-support' 2015-06-01 11:38:02 -07:00
Anthony Johnson
966cce1051 Default autoapi to python instead of dotnet 2015-06-01 11:29:19 -07:00
Anthony Johnson
481bd777cb Fix spacing on parameter output and code blocks 2015-06-01 11:26:19 -07:00
Eric Holscher
b56f2dc1d8 Merge remote-tracking branch 'origin/go-parsed-example' 2015-06-01 11:24:03 -07:00
Anthony Johnson
c2fd90fd21 Fix handling of create_class as a generator 2015-06-01 11:20:54 -07:00
Anthony Johnson
ff8292af6f Clean up print statement 2015-05-31 14:41:16 -07:00
Anthony Johnson
c270b9de14 Move parameter name list up to signature 2015-05-31 14:38:17 -07:00
Anthony Johnson
f0772d1a57 Support inverted go const and var objects
Changes class creation to a generator and invert list of const/var names to
multiple objects.
2015-05-30 22:03:19 -07:00
Anthony Johnson
181c7ea2a4 Add child display 2015-05-30 18:42:06 -07:00
Anthony Johnson
808c1a090f Add parameters to output 2015-05-30 18:32:43 -07:00
Anthony Johnson
8819b46a2f Clean up cruft and handle a few failures better 2015-05-30 16:28:59 -07:00
Anthony Johnson
3653636673 Revert "Fix package output for now."
With better formatting of domain output, separation by heading is redundant.
Also, secondary header for page title might not be necessary with correct domain
output of package objects.
2015-05-29 20:09:36 -07:00
Eric Holscher
f133c7d603 Fix package output for now. 2015-05-29 16:02:56 -07:00
Eric Holscher
18533426c3 Add title to package 2015-05-29 15:54:50 -07:00
Eric Holscher
cdd8d244de Fix up templates 2015-05-29 15:48:58 -07:00
Eric Holscher
a4a68d9213 Fix up go stuff 2015-05-29 15:34:51 -07:00
Eric Holscher
9bdd44d8cd Add a basic go domain. 2015-05-29 15:22:06 -07:00
Anthony Johnson
af539d8868 Untested first pass of templates 2015-05-29 15:02:27 -07:00
Christopher Swenson
0ccde8454a Fix double autoapi_dir prepended to find_files 2015-05-29 14:34:05 -07:00
Anthony Johnson
9612dae694 Add better reference and obj id handling for generics 2015-04-24 18:32:16 -07:00
Anthony Johnson
a3cea299dc Adding indentation on .net detail template, hidden types 2015-04-24 15:04:10 -07:00
Eric Holscher
a05a85507a Add GitHub section 2015-04-24 13:16:15 -07:00
Eric Holscher
6410bee011 Fix hierarchy, and include object itself in it. 2015-04-24 12:46:47 -07:00
Eric Holscher
c79a0f3cee Clean up namespaces and display 2015-04-24 12:37:00 -07:00
Eric Holscher
4e532d8a94 New namespace parsing 2015-04-24 10:35:05 -07:00
Eric Holscher
a4b116b527 Move to top-level TOC for now. 2015-04-24 10:10:51 -07:00
Eric Holscher
cc8e5d6ee5 Show local TOC 2015-04-24 10:10:36 -07:00
Eric Holscher
677df52c46 Show toc for now 2015-04-23 15:57:17 -07:00
Eric Holscher
0404c4723d Reindent 2015-04-23 15:52:38 -07:00