sphinx-contrib / ansi Goto Github PK
View Code? Open in Web Editor NEW💖 Project is looking for extra maintainers, check issue tracker.
Home Page: https://github.com/sphinx-contrib/ansi/issues/6
License: BSD 2-Clause "Simplified" License
💖 Project is looking for extra maintainers, check issue tracker.
Home Page: https://github.com/sphinx-contrib/ansi/issues/6
License: BSD 2-Clause "Simplified" License
LICENSE file is referenced in the doc/index.rst.
Therefore, building the docs currently fails (and that is one of the problems).
setup.py
(in version 0.6) was broken after README
file was renamed to README.rst
.
SEE: pull-request #1
That is a tracking ticket for actions needed for bringing back the project to being actively maintained:
sphinxcontrib-ansi
is using some old-style Sphinx APIs that are removed in Sphinx v2.x:
app.info()
(use: sphinx.util.logging
)# -- SPHINX-BUILD OUTPUT:
...
Running Sphinx v1.8.5
...
/xxx/.venv_py37/lib/python3.7/site-packages/sphinxcontrib/ansi.py:180: RemovedInSphinx20Warning: app.info() is now deprecated. Use sphinx.util.logging instead.
app.info(bold('Copying ansi stylesheet... '), nonl=True)
Copying ansi stylesheet...
/xxx/.venv_py37/lib/python3.7/site-packages/sphinxcontrib/ansi.py:184: RemovedInSphinx20Warning: app.info() is now deprecated. Use sphinx.util.logging instead.
app.info('done')
...
Hopefully this is a reasonable place to ask this question:
I have some program that has terminal output with ANSI color codes that nicely display color in the terminal, but will show the literal ANSI codes in the HTML output unfortunately.
As a simple example, let's say I have some python file like this:
# -*- coding: utf-8 -*-
"""
Plot The Marvelous Colors
=========================
"""
print('\033[94m' + "hi" + '\033[0m')
then in doc after building with sphinx gallery unfortunately I get this:
�[94mhis�[0m
This can also be seen in the second-last cell here:
https://braindecode.org/auto_examples/plot_bcic_iv_2a_moabb_trial.html
Is this something that this package would try to handle? Or do you know where else I might ask?
Gettting the following error message with the add_stylesheet
call, which has been deprecated in favor of add_css_file
Extension error (sphinxcontrib.ansi):
Handler <function add_stylesheet at 0x103fcadc0> for event 'builder-inited' threw
an exception (exception: 'Sphinx' object has no attribute 'add_stylesheet')
I can submit a PR if needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.