andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Sphinx html #239

Closed bjones1 closed 9 years ago

bjones1 commented 9 years ago

Finally -- adds the ability to run Sphinx to the preview window.

andreikop commented 9 years ago

Wow!!! Bryan, Pan, huge and cool job! I've made some comments during reading the changes. Mainly about the UI.

Few more things:

Simple:

Difficult:

bjones1 commented 9 years ago

Thanks! It was a lot more work than I realized. Pan did a great job and wrote a lot of it.

Re: Sphinx on a separate page: will do. We wondered what made sense and could see it either way (as a separate page or not).

Re: test failures -- we'll fix. They somehow slipped through.

I don't have any good ideas on a current project. Options I can think of:

andreikop commented 9 years ago

Bryan, Pan Hejia, have you finished doing the changes?

bjones1 commented 9 years ago

Almost -- just one more fix and we'll be ready, hopefully done by today.

bjones1 commented 9 years ago

OK, done. Would you take a look?

andreikop commented 9 years ago

Cool. Will review asap

andreikop commented 9 years ago

I've opened a reverse pull request

andreikop commented 9 years ago

Continuing here discussion from the reverse pull request

Advanced mode

I'd prefer to have simple preview functionality which always works, and add new code ( or even new plugins) for Doxygen etc. But OK, let's leave the advanced mode.

Output file extension

I've checked the code and now understand how it works. And I think we should remove output extension combobox because

We might parse conf.py, but I think it is better idea just to guess the extension by checking common variants. ("", "html", "htm") one by one

bjones1 commented 9 years ago

Good points, especially about asking the user for what we can get or guess in code. Let me ponder a bit on how best to do this.

bjones1 commented 9 years ago

Andrei,

I've finished up all the fixes and changes I know -- would you take another look at this?

Thanks!

Bryan

andreikop commented 9 years ago

Cool job. Works fine for me. Was near to merge, but discovered some test failures. http://pastebin.com/m4D63qkq I use Linux, sphinx 1.1.3, CodeChat 0.0.16

I see, that one of the test is marked as expected failure. unittest.skip it to have cleaner log.

bjones1 commented 9 years ago

Oops, I forgot to update CodeChat -- I was using the development version, which fixes the test failures. CodeChat is now at 0.0.17 -- please pip install CodeChat -U on your system.

Changed from expectedFailure to skip in 5c51d22b791d675d899230669ff7b9967aa673c3.

andreikop commented 9 years ago

Thanks. Will be released with the next version!

bjones1 commented 9 years ago

Great! I'm really excited to have this functionality as a core part of Enki.