#17371: The rst contents directive does not work with sagenb (wrong anchors)
----------------------------+------------------------
Reporter: tmonteil | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: notebook | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Comment (by kcrisman):
Okay, I figured out the (very) short answer to the second question. At
some point new users were no longer created for a notebook, apparently.
It's no problem to fix, though.
{{{#!diff
diff --git a/src/bin/sage-rst2sws b/src/bin/sage-rst2sws
index 0a7b92b..33e7721 100755
--- a/src/bin/sage-rst2sws
+++ b/src/bin/sage-rst2sws
@@ -131,6 +131,7 @@ worksheet_txt = translator.process_doc_html(html)
from sagenb.notebook.notebook import Notebook
from sage.misc.misc import tmp_dir
nb = Notebook(tmp_dir()+'.sagenb')
+nb.user_manager().create_default_users('password')
# create a worksheet
W = nb.create_new_worksheet(title, 'admin')
}}}
----
But I won't make a branch for that quite yet. Looking at it a bit more,
the original problem is really with the refs. (I discovered this from the
errors I got in a successful run of `rst2sws` and then what happened when
I uploaded it.) Namely, [http://bytes.com/topic/python/answers/803578
-docutils-rst2html-py-gives-error-3-unknown-directive-type-toctree ref and
toctree are not docutils ReST]. They are Sphinx. One ''possible''
workaround is given [http://rest-sphinx-
memo.readthedocs.org/en/latest/ReST.html#internal-document-reference here]
but probably one will have to use the {{{`label`_}}} markup to get this to
work right. Possibly this is a wontfix? :-(
--
Ticket URL: <http://trac.sagemath.org/ticket/17371#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.