Thanks a lot. I'm already found some examples in docutils\test
\test_parsers\test_rst\includes\ and try to use it and it works.
I make one file for hyperlinks like
substitutions.rst ---
.. _`Test link`:
http://example.com
and in another file use it:
index.rst------
.. include:: substitutions.rst
Here we place our `Test link`_
--------------------
This is works fine for me.
On 18 Лис, 03:22, Dan Craig <[EMAIL PROTECTED]> wrote:
> I was able to do something like that using
>
> .. include:: substitutions.txt
>
> in each of the files where you want to use the substitution strings.
> The substitutions.txt file has all the rest of my substitution
> definitions. I haven't tried, but I would imagine you can do multiple
> of those. I was thinking of making a substitutions directory and then
> adding as many files as I want in it with all my different subs
> categories. Then all you have to do is add that directory to the
> exclude_trees list and it won't complain if you use the same file
> extension.
>
> Hope that helps,
> Dan
>
> On Nov 17, 10:51 am, Stoune <[EMAIL PROTECTED]> wrote:
>
>
>
> > rST documentation says:
>
> > > Substitutions
> > >....If you want to use some substitutions for all documents, put them into
> > >a *separate file* and include it into all documents you want to use them
> > >in, using the include directive. Be sure to give the include file a file
> > >name extension differing from that of other source files, to avoid Sphinx
> > >finding it as a standalone document.
>
> > I want define substitutions in separate file. But I didn't find any
> > example of syntax how to this include organize. Can anybody point me
> > there I can find them?
> > I want to make one file for hyperlinks and names that can be changes
> > in near future, so I want to localize future corrections in one place.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---