Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
a5e54607
Commit
a5e54607
authored
Jun 27, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable automatic redirection for outdated pages.
parent
084a25f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
177 deletions
+34
-177
docs/conf.py
docs/conf.py
+34
-0
docs/src/reference/index.rst
docs/src/reference/index.rst
+0
-1
docs/src/reference/language_basics.rst
docs/src/reference/language_basics.rst
+0
-176
No files found.
docs/conf.py
View file @
a5e54607
...
@@ -455,3 +455,37 @@ pdf_use_numbered_links = False
...
@@ -455,3 +455,37 @@ pdf_use_numbered_links = False
# Background images fitting mode
# Background images fitting mode
pdf_fit_background_mode
=
'scale'
pdf_fit_background_mode
=
'scale'
# Making redirection:
html_template
=
"""
<html>
<head>
<meta http-equiv="refresh" content="1; url={0}:" />
<script>
window.location.href = "{0}"
</script>
</head>
</html>"""
list_redirects
=
[(
'reference/language_basics'
,
'userguide/language_basics'
)]
def
add_legacy_redirects
(
app
,
docname
):
if
app
.
builder
.
name
==
'html'
:
for
old_link
,
new_link
in
list_redirects
:
old_link
=
"src/"
+
old_link
+
".html"
new_link
=
"src/"
+
new_link
+
".html"
rel_path
=
os
.
path
.
relpath
(
new_link
,
os
.
path
.
dirname
(
old_link
))
html_to_write
=
html_template
.
format
(
rel_path
)
target_path
=
app
.
outdir
+
'/'
+
old_link
with
open
(
target_path
,
"w+"
)
as
f
:
f
.
write
(
html_to_write
)
def
setup
(
app
):
app
.
connect
(
'build-finished'
,
add_legacy_redirects
)
docs/src/reference/index.rst
View file @
a5e54607
...
@@ -11,7 +11,6 @@ Contents:
...
@@ -11,7 +11,6 @@ Contents:
:maxdepth: 2
:maxdepth: 2
compilation
compilation
language_basics
extension_types
extension_types
interfacing_with_other_code
interfacing_with_other_code
special_mention
special_mention
...
...
docs/src/reference/language_basics.rst
deleted
100644 → 0
View file @
084a25f5
.. highlight:: cython
***************
Language Basics
***************
.. note::
The sections in this page were moved to the :ref:`language-basics` in the userguide.
=================
Cython File Types
=================
This section was moved to :ref:`cython_file_types`.
Implementation File
===================
What can it contain?
--------------------
What can't it contain?
----------------------
Definition File
===============
What can it contain?
--------------------
What can't it contain?
----------------------
What else?
----------
cimport
```````
compilation order
`````````````````
Include File
============
What can it contain?
--------------------
How do I use it?
----------------
====================
Declaring Data Types
====================
This section was moved to :ref:`declaring_data_types`.
The cdef Statement
==================
This section was moved to :ref:`c_variable_and_type_definitions`.
Grouping cdef Declarations
==========================
This section was moved to :ref:`c_variable_and_type_definitions`.
C types and Python classes
==========================
This section was moved to :ref:`types`.
Parameters
==========
This section was moved to :ref:`python_functions_vs_c_functions`.
Automatic Type Conversion
=========================
This section was moved to :ref:`type-conversion`.
Type Casting
============
This section was moved to :ref:`type_casting`.
Checked Type Casts
------------------
This section was moved to :ref:`checked_type_casts`.
==========================
Statements and Expressions
==========================
This section was moved to :ref:`statements_and_expressions`.
Differences Between Cython and C
================================
Scope Rules
===========
Built-in Constants
==================
Operator Precedence
===================
For-loops
==========
=====================
Functions and Methods
=====================
This section was moved to :ref:`python_functions_vs_c_functions`.
Callable from Python (def)
==========================
Callable from C (cdef)
======================
Callable from both Python and C (cpdef)
=======================================
Overriding
==========
This section was moved to :ref:`overriding_in_extension_types`.
Function Pointers
=================
Python Built-ins
================
This section was moved to :ref:`built_in_functions`.
Optional Arguments
==================
This section was moved to :ref:`optional_arguments`.
Keyword-only Arguments
=======================
This section was moved to :ref:`keyword_only_argument`.
============================
Error and Exception Handling
============================
This section was moved to :ref:`error_return_values`.
Checking return values for non-Cython functions..
=================================================
This section was moved to :ref:`checking_return_values_of_non_cython_functions`.
=======================
Conditional Compilation
=======================
This section was moved to :ref:`conditional_compilation`.
Compile-Time Definitions
=========================
Conditional Statements
=======================
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment