@TP Thanks for this example. I will read it carefully. This should be
really helpful. Thanks again.

On Thu, Jan 13, 2011 at 3:56 PM, TP <wing...@gmail.com> wrote:
> On Thu, Jan 13, 2011 at 9:32 AM, Curiouslearn <curiousle...@gmail.com> wrote:
>> @Federico: Thanks so much. This is great.
>>
>> @Daslch: Thanks. Do I just save my css file in the _static directory
>> and then invoke the styles I define there using raw html directive.
>>
>> Thanks again.
>
> Here's what I do. In my conf.py file I set:
>
>    html_theme = 'customtheme'
>
>    html_theme_path = ['.']
>
>    rst_prolog="""
>    .. role:: myrole
>       :class: mycustomrole
>    """
>
> My customtheme\theme.conf contains:
>
>    [theme]
>    inherit = default
>    stylesheet = customtheme.css
>    pygments_style = sphinx
>
> and customtheme\static\customtheme.css_t contains:
>
>    @import url("default.css");
>    .mycustomrole {
>      font-family: monospace;
>      font-size: 125%;
>    }
>
> if for example I want all "myrole" text to be monospace and bigger.
>
> In my .rst files I can then do:
>
>   Some text that uses :myrole:`my custom role`.
>
> and when Sphinx generates the HTML it will look like:
>
>   <link rel="stylesheet" href="../_static/customtheme.css" type="text/css" />
>   ...
>
>   <p>Some text that uses <span class="mycustomrole">my custom role</span>.</p>
>
> So, as you can see there is rarely any need to use the :raw-html: role.
>
>
>> On Thu, Jan 13, 2011 at 10:06 AM, Federico Bruni <fedel...@gmail.com> wrote:
>>> 2011/1/13 Curiouslearn <curiousle...@gmail.com>
>>>>
>>>> Hello All,
>>>>
>>>> Sphinx seems great. I am trying it out and I think I will start using
>>>> it for most of my writing. I have two basic questions:
>>>>
>>>> (1) How to get rid of the text "v0.1" or something like that which
>>>> refers to the version. I am writing some notes and it is not a
>>>> documentation about any software. I commented out "version = 0.1" in
>>>> the conf.py file and then I just got a "v".
>>>>
>>>
>>> In your conf.py you should specify html_title.
>>> Search this paragraph:
>>>
>>> # The name for this set of Sphinx documents.  If None, it defaults to
>>> # "<project> v<release> documentation".
>>> #html_title = None
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "sphinx-dev" group.
>>> To post to this group, send email to sphinx-dev@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> sphinx-dev+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/sphinx-dev?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sphinx-dev" group.
>> To post to this group, send email to sphinx-dev@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> sphinx-dev+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/sphinx-dev?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-dev" group.
> To post to this group, send email to sphinx-dev@googlegroups.com.
> To unsubscribe from this group, send email to 
> sphinx-dev+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sphinx-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to