Skip to content

Commit

Permalink
docs: Fix long standing linking antipattern.
Browse files Browse the repository at this point in the history
Before we learned about :doc:, we used :ref: and put a dummy link at the
top of each page. Don't do that anymore.

This fixes PR14891 as a special case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172162 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chisophugis committed Jan 11, 2013
1 parent 52b2373 commit a7aec40
Show file tree
Hide file tree
Showing 44 changed files with 43 additions and 127 deletions.
2 changes: 0 additions & 2 deletions docs/AliasAnalysis.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _alias_analysis:

==================================
LLVM Alias Analysis Infrastructure
==================================
Expand Down
2 changes: 0 additions & 2 deletions docs/Atomics.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _atomics:

==============================================
LLVM Atomic Instructions and Concurrency Guide
==============================================
Expand Down
2 changes: 0 additions & 2 deletions docs/BitCodeFormat.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _bitcode_format:

.. role:: raw-html(raw)
:format: html

Expand Down
2 changes: 0 additions & 2 deletions docs/BranchWeightMetadata.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _branch_weight:

===========================
LLVM Branch Weight Metadata
===========================
Expand Down
2 changes: 0 additions & 2 deletions docs/Bugpoint.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _bugpoint:

====================================
LLVM bugpoint tool: design and usage
====================================
Expand Down
2 changes: 0 additions & 2 deletions docs/CMake.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _building-with-cmake:

========================
Building LLVM with CMake
========================
Expand Down
2 changes: 0 additions & 2 deletions docs/CodeGenerator.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _code_generator:

==========================================
The LLVM Target-Independent Code Generator
==========================================
Expand Down
2 changes: 0 additions & 2 deletions docs/CodingStandards.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _coding_standards:

=====================
LLVM Coding Standards
=====================
Expand Down
2 changes: 0 additions & 2 deletions docs/CommandGuide/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _commands:

LLVM Command Guide
------------------

Expand Down
2 changes: 0 additions & 2 deletions docs/CommandLine.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _commandline:

==============================
CommandLine 2.0 Library Manual
==============================
Expand Down
2 changes: 0 additions & 2 deletions docs/CompilerWriterInfo.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _compiler_writer_info:

========================================================
Architecture & Platform Information for Compiler Writers
========================================================
Expand Down
2 changes: 0 additions & 2 deletions docs/DebuggingJITedCode.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _debugging-jited-code:

==============================
Debugging JIT-ed Code With GDB
==============================
Expand Down
2 changes: 0 additions & 2 deletions docs/DeveloperPolicy.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _developer_policy:

=====================
LLVM Developer Policy
=====================
Expand Down
2 changes: 0 additions & 2 deletions docs/ExceptionHandling.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _exception_handling:

==========================
Exception Handling in LLVM
==========================
Expand Down
2 changes: 0 additions & 2 deletions docs/ExtendingLLVM.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _extending_llvm:

============================================================
Extending LLVM: Adding instructions, intrinsics, types, etc.
============================================================
Expand Down
2 changes: 0 additions & 2 deletions docs/FAQ.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _faq:

================================
Frequently Asked Questions (FAQ)
================================
Expand Down
2 changes: 0 additions & 2 deletions docs/GetElementPtr.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _gep:

=======================================
The Often Misunderstood GEP Instruction
=======================================
Expand Down
2 changes: 0 additions & 2 deletions docs/GettingStarted.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _getting_started:

====================================
Getting Started with the LLVM System
====================================
Expand Down
2 changes: 0 additions & 2 deletions docs/GettingStartedVS.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _winvs:

==================================================================
Getting Started with the LLVM System using Microsoft Visual Studio
==================================================================
Expand Down
2 changes: 0 additions & 2 deletions docs/GoldPlugin.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _gold-plugin:

====================
The LLVM gold plugin
====================
Expand Down
2 changes: 0 additions & 2 deletions docs/HowToAddABuilder.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _how_to_add_a_builder:

===================================================================
How To Add Your Build Configuration To LLVM Buildbot Infrastructure
===================================================================
Expand Down
2 changes: 0 additions & 2 deletions docs/HowToBuildOnARM.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _how_to_build_on_arm:

===================================================================
How To Build On ARM
===================================================================
Expand Down
2 changes: 1 addition & 1 deletion docs/HowToReleaseLLVM.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Build LLVM

Build ``Debug``, ``Release+Asserts``, and ``Release`` versions
of ``llvm`` on all supported platforms. Directions to build ``llvm``
are :ref:`here <getting_started>`.
are :doc:`here <GettingStarted>`.

Build Clang Binary Distribution
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 0 additions & 2 deletions docs/HowToSetUpLLVMStyleRTTI.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _how-to-set-up-llvm-style-rtti:

======================================================
How to set up LLVM-style RTTI for your class hierarchy
======================================================
Expand Down
2 changes: 0 additions & 2 deletions docs/HowToSubmitABug.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _how-to-submit-a-bug-report:

================================
How to submit an LLVM bug report
================================
Expand Down
2 changes: 0 additions & 2 deletions docs/HowToUseInstrMappings.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _how_to_use_instruction_mappings:

===============================
How To Use Instruction Mappings
===============================
Expand Down
2 changes: 0 additions & 2 deletions docs/Lexicon.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _lexicon:

================
The LLVM Lexicon
================
Expand Down
2 changes: 0 additions & 2 deletions docs/LinkTimeOptimization.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _lto:

======================================================
LLVM Link Time Optimization: Design and Implementation
======================================================
Expand Down
2 changes: 0 additions & 2 deletions docs/MakefileGuide.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _makefile_guide:

===================
LLVM Makefile Guide
===================
Expand Down
2 changes: 0 additions & 2 deletions docs/MarkedUpDisassembly.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _marked_up_disassembly:

=======================================
LLVM's Optional Rich Disassembly Output
=======================================
Expand Down
2 changes: 0 additions & 2 deletions docs/Packaging.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _packaging:

========================
Advice on Packaging LLVM
========================
Expand Down
8 changes: 4 additions & 4 deletions docs/ProgrammersManual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ Here are some useful links:
(even better, get the book)
<http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html>`_.

You are also encouraged to take a look at the :ref:`LLVM Coding Standards
<coding_standards>` guide which focuses on how to write maintainable code more
You are also encouraged to take a look at the :doc:`LLVM Coding Standards
<CodingStandards>` guide which focuses on how to write maintainable code more
than where to put your curly braces.

.. _resources:
Expand Down Expand Up @@ -178,8 +178,8 @@ rarely have to include this file directly).

These five templates can be used with any classes, whether they have a v-table
or not. If you want to add support for these templates, see the document
:ref:`How to set up LLVM-style RTTI for your class hierarchy
<how-to-set-up-llvm-style-rtti>`
:doc:`How to set up LLVM-style RTTI for your class hierarchy
<HowToSetUpLLVMStyleRTTI>`

.. _string_apis:

Expand Down
2 changes: 0 additions & 2 deletions docs/Projects.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _projects:

========================
Creating an LLVM Project
========================
Expand Down
2 changes: 0 additions & 2 deletions docs/SegmentedStacks.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _segmented_stacks:

========================
Segmented Stacks in LLVM
========================
Expand Down
2 changes: 0 additions & 2 deletions docs/TableGenFundamentals.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _tablegen:

=====================
TableGen Fundamentals
=====================
Expand Down
2 changes: 0 additions & 2 deletions docs/YamlIO.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _yamlio:

=====================
YAML I/O
=====================
Expand Down
4 changes: 1 addition & 3 deletions docs/design_and_overview.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _design_and_overview:

LLVM Design & Overview
======================

Expand Down Expand Up @@ -31,7 +29,7 @@ LLVM Design & Overview

More details (quite old now).

* :ref:`gep`
* :doc:`GetElementPtr`

Answers to some very frequent questions about LLVM's most frequently
misunderstood instruction.
6 changes: 2 additions & 4 deletions docs/development_process.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _development_process:

Development Process Documentation
=================================

Expand All @@ -11,7 +9,7 @@ Development Process Documentation
LLVMBuild
HowToReleaseLLVM

* :ref:`projects`
* :doc:`Projects`

How-to guide and templates for new projects that *use* the LLVM
infrastructure. The templates (directory organization, Makefiles, and test
Expand All @@ -23,7 +21,7 @@ Development Process Documentation
Describes the LLVMBuild organization and files used by LLVM to specify
component descriptions.

* :ref:`makefile_guide`
* :doc:`MakefileGuide`

Describes how the LLVM makefiles work and how to use them.

Expand Down
14 changes: 6 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _contents:

Overview
========

Expand All @@ -18,15 +16,15 @@ targeted at different audiences:
* **Design & Overview**

Several introductory papers and presentations are available at
:ref:`design_and_overview`.
:doc:`design_and_overview`.

* **Publications**

The list of `publications <http://llvm.org/pubs>`_ based on LLVM.

* **User Guides**

Those new to the LLVM system should first visit the :ref:`userguides`.
Those new to the LLVM system should first visit the :doc:`userguides`.

NOTE: If you are a user who is only interested in using LLVM-based
compilers, you should look into `Clang <http://clang.llvm.org>`_ or
Expand All @@ -37,21 +35,21 @@ targeted at different audiences:
* **API Clients**

Developers of applications which use LLVM as a library should visit the
:ref:`programming`.
:doc:`programming`.

* **Subsystems**

API clients and LLVM developers may be interested in the
:ref:`subsystems` documentation.
:doc:`subsystems` documentation.

* **Development Process**

Additional documentation on the LLVM project can be found at
:ref:`development_process`.
:doc:`development_process`.

* **Mailing Lists**

For more information, consider consulting the LLVM :ref:`mailing_lists`.
For more information, consider consulting the LLVM :doc:`mailing_lists`.

.. toctree::
:maxdepth: 2
Expand Down
2 changes: 0 additions & 2 deletions docs/mailing_lists.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _mailing_lists:

Mailing Lists
=============

Expand Down
14 changes: 6 additions & 8 deletions docs/programming.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _programming:

Programming Documentation
=========================

Expand All @@ -14,12 +12,12 @@ Programming Documentation
HowToSetUpLLVMStyleRTTI
ProgrammersManual

* `LLVM Language Reference Manual <LangRef.html>`_
* :doc:`LLVM Language Reference Manual <LangRef>`

Defines the LLVM intermediate representation and the assembly form of the
different nodes.

* :ref:`atomics`
* :doc:`Atomics`

Information about LLVM's concurrency model.

Expand All @@ -28,11 +26,11 @@ Programming Documentation
Introduction to the general layout of the LLVM sourcebase, important classes
and APIs, and some tips & tricks.

* :ref:`commandline`
* :doc:`CommandLine`

Provides information on using the command line parsing library.

* :ref:`coding_standards`
* :doc:`CodingStandards`

Details the LLVM coding standards and provides useful information on writing
efficient C++ code.
Expand All @@ -42,7 +40,7 @@ Programming Documentation
How to make ``isa<>``, ``dyn_cast<>``, etc. available for clients of your
class hierarchy.

* :ref:`extending_llvm`
* :doc:`ExtendingLLVM`

Look here to see how to add instructions and intrinsics to LLVM.

Expand All @@ -53,6 +51,6 @@ Programming Documentation

* `ViewVC Repository Browser <http://llvm.org/viewvc/>`_

* :ref:`compiler_writer_info`
* :doc:`CompilerWriterInfo`

A list of helpful links for compiler writers.
Loading

0 comments on commit a7aec40

Please sign in to comment.