sphinx を使用したソフトウェア プロジェクトの文書化を手伝っています。13 のクラスをすべて 1 つの HTML ファイルでカバーしたいと考えています。便利です。
私の問題: 一部のクラスには同じ名前の属性があります (以下の 2 つのクラスの「幅」と「重み」を参照してください)。結果の HTML doc ファイルで、プロパティ「幅」をクリックすると、見ているクラスに関係なく、常に HTML アンカー「#width」にジャンプします。
スフィンクスに一意のアンカー名を生成させる方法はありますか?
:mod:`GSFontMaster`
===============================================================================
Implementation of the master object. This corresponds more or less with the "Masters" pane in the Font Info.
In Glyphs.app the glyphs of each master are reachable not here, but as :class:`Layers <GSLayer>` attached to the :class:`Glyphs <GSGlyph>` attached to the :class:`Font <GSFont>` object. See info graphic on top for better understanding.
.. class:: GSFontMaster
.. autosummary::
name
id
weight
width
weightValue
widthValue
custom
customValue
ascender
capHeight
xHeight
descender
italicAngle
verticalStems
horizontalStems
alignmentZones
guideLines
userData
customParameters
----------
Properties
----------
.. attribute:: id
Used to identify :class:`GSLayer <Layer>` in the Glyph
:type: unicode
.. attribute:: name
:type: string
.. attribute:: weight
:type: string
.. attribute:: width
:type: string
.. attribute:: weightValue
Values for interpolation in design space.
:type: float
.. attribute:: widthValue
Values for interpolation in design space.
:type: float
.. attribute:: custom
:type: string
.. attribute:: customValue
Values for interpolation in design space.
.. attribute:: ascender
:type: float
.. attribute:: capHeight
:type: float
.. attribute:: xHeight
:type: float
.. attribute:: descender
:type: float
.. attribute:: italicAngle
:type: float
.. attribute:: verticalStems
List of vertical stem values
:type: list
.. attribute:: horizontalStems
List of horizontal stem values
:type: list
.. attribute:: alignmentZones
Collection of :class:`GSAlignmentZone <GSAlignmentZone>`.
:type: list
.. attribute:: guideLines
Collection of :class:`GSGuideLine <GSGuideLine>`.
:type: list
.. attribute:: userData
A dictionary to store user data. Use a unique Key and only use object that can be stored in a Property list (string, list, dict, numbers, NSData) otherwise the date will not be recoverable from the saved file.
:type: dict
.. attribute:: customParameters
A dictionary of custom parameters
:type: dict
:mod:`GSInstance`
===============================================================================
Implementation of the instance object. This corresponds more or less with the "Instances" pane in the Font Info.
.. class:: GSInstance
.. autosummary::
active
name
weight
width
weightValue
widthValue
isItalic
isBold
linkStyle
customParameters
----------
Properties
----------
.. attribute:: active
:type: bool
.. attribute:: name
:type: string
.. attribute:: weight
:type: string
.. attribute:: width
:type: string
.. attribute:: weightValue
Values for interpolation in design space.
:type: float
.. attribute:: widthValue
Values for interpolation in design space.
:type: float
.. attribute:: isItalic
Italic flag for style linking
:type: bool
.. attribute:: isBold
Bold flag for style linking
:type: bool
.. attribute:: linkStyle
Linked style
:type: string
.. attribute:: customParameters
A dictionary of custom parameters
:type: dict