Re: [sphinx-users] numref for container

2020-02-01 Thread Myne
Hi,

I tried to make an extension which will number and reference the containers 
but did not succeed.
https://github.com/jtrakk/sphinx-demo

How can I fix it?

Thanks.

On Saturday, February 1, 2020 at 3:22:52 AM UTC-8, Komiya Takeshi wrote:
>
> Hi, 
>
> "numref" only does referring by number as it named. To refer something 
> by number, you need to assign numbers to each object before 
> referencing. But Sphinx does not have a feature to assign numbers to 
> containers. So you need to write some extensions to do that. 
>
> Personally, I can't imagine how containers get numbered. How is it 
> displayed? 
>
> Thanks, 
> Takeshi KOMIYA 
>
> 2020年2月1日(土) 13:36 Myne >: 
> > 
> > Hi, 
> > 
> > I want to make a numref to a container. 
> > 
> > 
> > .. container:: 
> >:name: mycontainer 
> > 
> > 
> >  spam eggs 
> > 
> > 
> > 
> > 
> > Bar 
> > - 
> > 
> > 
> > Let's reference :numref:`mycontainer` . 
> > 
> > 
> > I want it to appear as "Let's reference Cont. 1" . In my conf.py I put 
> > 
> > 
> > numfig_format = {'container': 'Cont. %s'} 
> > 
> > 
> > 
> > But that doesn't seem to work, I get 
> > 
> > WARNING: undefined label: mycontainer 
> > 
> > I am wondering how to make numref work on containers and other types. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sphinx-users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sphinx...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/f6167e37-ef86-416a-9355-7138bfa82345%40googlegroups.com.
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/7dfe936b-8b9c-4b73-8fc4-88229d1ed703%40googlegroups.com.


[sphinx-users] wiki to collect documentatio

2020-02-01 Thread Renato Pontefice
Hi,
ca someone show me a god wiki to collect rst documentation in my factory?

Thank you

Renato

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/f7e01e08-9589-43d5-955f-ca780c99cd2e%40googlegroups.com.


Re: [sphinx-users] numref for container

2020-02-01 Thread Komiya Takeshi
Hi,

"numref" only does referring by number as it named. To refer something
by number, you need to assign numbers to each object before
referencing. But Sphinx does not have a feature to assign numbers to
containers. So you need to write some extensions to do that.

Personally, I can't imagine how containers get numbered. How is it displayed?

Thanks,
Takeshi KOMIYA

2020年2月1日(土) 13:36 Myne :
>
> Hi,
>
> I want to make a numref to a container.
>
>
> .. container::
>:name: mycontainer
>
>
>  spam eggs
>
>
>
>
> Bar
> -
>
>
> Let's reference :numref:`mycontainer` .
>
>
> I want it to appear as "Let's reference Cont. 1" . In my conf.py I put
>
>
> numfig_format = {'container': 'Cont. %s'}
>
>
>
> But that doesn't seem to work, I get
>
> WARNING: undefined label: mycontainer
>
> I am wondering how to make numref work on containers and other types.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sphinx-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/f6167e37-ef86-416a-9355-7138bfa82345%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAFmkQAOXzHxjgL2q%3DaYjK_i97fVv57Zud9kiQBxtdbbDeo9nnw%40mail.gmail.com.