Skip to content

Commit f70fb6a

Browse files
committed
(杂项更改)修正英文导航目录以及翻译结构化数组部分内容
1 parent 13add20 commit f70fb6a

File tree

6 files changed

+331
-540
lines changed

6 files changed

+331
-540
lines changed

docs/.vuepress/sidebar/bedocs_en.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ module.exports = function () {
55
collapsable: true,
66
sidebarDepth: 3,
77
children: [
8-
['/bedocs/', 'Index'],
9-
['/bedocs/howto_document', 'A Guide to NumPy/SciPy Documentation'],
10-
['/bedocs/example_source', 'Example Source'],
11-
['/bedocs/example_rendered', 'Example Rendered'],
12-
['/bedocs/howto_build_docs', 'Building the NumPy API and reference docs']
8+
['/en/bedocs/', 'Index'],
9+
['/en/bedocs/howto_document', 'A Guide to NumPy/SciPy Documentation'],
10+
['/en/bedocs/example_source', 'Example Source'],
11+
['/en/bedocs/example_rendered', 'Example Rendered'],
12+
['/en/bedocs/howto_build_docs', 'Building the NumPy API and reference docs']
1313
]
1414
}
1515
]
16-
}
16+
}

docs/.vuepress/sidebar/dev_en.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,65 @@ module.exports = function () {
55
collapsable: true,
66
sidebarDepth: 3,
77
children: [
8-
['/dev/code_of_conduct', 'NumPy Code of Conduct']
8+
['/en/dev/code_of_conduct', 'NumPy Code of Conduct']
99
]
1010
},
1111
{
1212
title: 'Git for development',
1313
collapsable: true,
1414
sidebarDepth: 3,
1515
children: [
16-
['/dev/gitwash', 'Git for development']
16+
['/en/dev/gitwash', 'Git for development']
1717
]
1818
},
1919
{
2020
title: 'Setting up and using your development environment',
2121
collapsable: true,
2222
sidebarDepth: 3,
2323
children: [
24-
['/dev/development_environment', 'Setting up and using your development environment']
24+
['/en/dev/development_environment', 'Setting up and using your development environment']
2525
]
2626
},
2727
{
2828
title: 'Development workflow',
2929
collapsable: true,
3030
sidebarDepth: 3,
3131
children: [
32-
['/dev/development_workflow', 'Development workflow']
32+
['/en/dev/development_workflow', 'Development workflow']
3333
]
3434
},
3535
{
3636
title: 'NumPy benchmarks',
3737
collapsable: true,
3838
sidebarDepth: 3,
3939
children: [
40-
['/dev/benchmarking', 'NumPy benchmarks']
40+
['/en/dev/benchmarking', 'NumPy benchmarks']
4141
]
4242
},
4343
{
4444
title: 'NumPy C Style Guide',
4545
collapsable: true,
4646
sidebarDepth: 3,
4747
children: [
48-
['/dev/style_guide', 'NumPy C Style Guide']
48+
['/en/dev/style_guide', 'NumPy C Style Guide']
4949
]
5050
},
5151
{
5252
title: 'Releasing a Version',
5353
collapsable: true,
5454
sidebarDepth: 3,
5555
children: [
56-
['/dev/releasing', 'Releasing a Version']
56+
['/en/dev/releasing', 'Releasing a Version']
5757
]
5858
},
5959
{
6060
title: 'NumPy governance',
6161
collapsable: true,
6262
sidebarDepth: 3,
6363
children: [
64-
['/dev/governance/', 'Index'],
65-
['/dev/governance/governance', 'NumPy project governance and decision-making'],
66-
['/dev/governance/people', 'Current steering council and institutional partners']
64+
['/en/dev/governance/', 'Index'],
65+
['/en/dev/governance/governance', 'NumPy project governance and decision-making'],
66+
['/en/dev/governance/people', 'Current steering council and institutional partners']
6767
]
6868
}
6969
]

docs/.vuepress/sidebar/f2py_en.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,39 @@ module.exports = function () {
55
collapsable: true,
66
sidebarDepth: 3,
77
children: [
8-
['/f2py/getting-started', 'Three ways to wrap - getting started']
8+
['/en/f2py/getting-started', 'Three ways to wrap - getting started']
99
]
1010
},
1111
{
1212
title: 'signature-file',
1313
collapsable: true,
1414
sidebarDepth: 3,
1515
children: [
16-
['/f2py/signature-file', 'Signature file']
16+
['/en/f2py/signature-file', 'Signature file']
1717
]
1818
},
1919
{
2020
title: 'Using F2PY bindings in Python',
2121
collapsable: true,
2222
sidebarDepth: 3,
2323
children: [
24-
['/f2py/python-usage', 'Using F2PY bindings in Python']
24+
['/en/f2py/python-usage', 'Using F2PY bindings in Python']
2525
]
2626
},
2727
{
2828
title: 'Using F2PY',
2929
collapsable: true,
3030
sidebarDepth: 3,
3131
children: [
32-
['/f2py/usage', 'Using F2PY']
32+
['/en/f2py/usage', 'Using F2PY']
3333
]
3434
},
3535
{
3636
title: 'Using via numpy.distutils',
3737
collapsable: true,
3838
sidebarDepth: 3,
3939
children: [
40-
['/f2py/distutils', 'Using via numpy.distutils']
40+
['/en/f2py/distutils', 'Using via numpy.distutils']
4141
]
4242
}
4343
]

docs/.vuepress/sidebar/reference_en.js

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -4,115 +4,115 @@ module.exports = function () {
44
collapsable: true,
55
sidebarDepth: 3,
66
children: [
7-
['/reference/arrays/', 'Index'],
8-
['/reference/arrays/ndarray', 'The N-dimensional array (ndarray)'],
9-
['/reference/arrays/scalars', 'Scalars'],
10-
['/reference/arrays/dtypes', 'Data type objects (dtype)'],
11-
['/reference/arrays/indexing', 'Indexing'],
12-
['/reference/arrays/nditer', 'Iterating Over Arrays'],
13-
['/reference/arrays/classes', 'Standard array subclasses'],
14-
['/reference/arrays/maskedarray', 'Masked arrays'],
15-
['/reference/arrays/interface', 'The Array Interface'],
16-
['/reference/arrays/datetime', 'Datetimes and Timedeltas']
7+
['/en/reference/arrays/', 'Index'],
8+
['/en/reference/arrays/ndarray', 'The N-dimensional array (ndarray)'],
9+
['/en/reference/arrays/scalars', 'Scalars'],
10+
['/en/reference/arrays/dtypes', 'Data type objects (dtype)'],
11+
['/en/reference/arrays/indexing', 'Indexing'],
12+
['/en/reference/arrays/nditer', 'Iterating Over Arrays'],
13+
['/en/reference/arrays/classes', 'Standard array subclasses'],
14+
['/en/reference/arrays/maskedarray', 'Masked arrays'],
15+
['/en/reference/arrays/interface', 'The Array Interface'],
16+
['/en/reference/arrays/datetime', 'Datetimes and Timedeltas']
1717
]
1818
}, {
1919
title: 'Constants',
2020
collapsable: true,
2121
sidebarDepth: 3,
2222
children: [
23-
['/reference/constants', 'Constants']
23+
['/en/reference/constants', 'Constants']
2424
]
2525
}, {
2626
title: 'Universal functions(ufunc)',
2727
collapsable: true,
2828
sidebarDepth: 3,
2929
children: [
30-
['/reference/ufuncs', 'Universal functions(ufunc)']
30+
['/en/reference/ufuncs', 'Universal functions(ufunc)']
3131
]
3232
}, {
3333
title: 'Routines',
3434
collapsable: true,
3535
sidebarDepth: 3,
3636
children: [
37-
['/reference/routines/', 'Index'],
38-
['/reference/routines/array-creation', 'Array creation routines'],
39-
['/reference/routines/array-manipulation', 'Array manipulation routines'],
40-
['/reference/routines/bitwise', 'Binary operations'],
41-
['/reference/routines/char', 'String operations'],
42-
['/reference/routines/ctypeslib', 'C-Types Foreign Function Interface (numpy.ctypeslib)'],
43-
['/reference/routines/datetime', 'Datetime Support Functions'],
44-
['/reference/routines/dtype', 'Data type routines'],
45-
['/reference/routines/dual', 'Optionally Scipy-accelerated routines (numpy.dual)'],
46-
['/reference/routines/emath', 'Mathematical functions with automatic domain (numpy.emath)'],
47-
['/reference/routines/err', 'Floating point error handling'],
48-
['/reference/routines/fft', 'Discrete Fourier Transform (numpy.fft)'],
49-
['/reference/routines/financial', 'Financial functions'],
50-
['/reference/routines/functional', 'Functional programming'],
51-
['/reference/routines/help', 'NumPy-specific help functions'],
52-
['/reference/routines/indexing', 'Indexing routines'],
53-
['/reference/routines/io', 'Input and output'],
54-
['/reference/routines/linalg', 'Linear algebra (numpy.linalg)'],
55-
['/reference/routines/logic', 'Logic functions'],
56-
['/reference/routines/ma', 'Masked array operations'],
57-
['/reference/routines/math', 'Mathematical functions'],
58-
['/reference/routines/matlib', 'Matrix library (numpy.matlib)'],
59-
['/reference/routines/other', 'Miscellaneous routines'],
60-
['/reference/routines/padding', 'Padding Arrays'],
61-
['/reference/routines/polynomials', 'Polynomials'],
62-
['/reference/routines/random', 'Random sampling (numpy.random)'],
63-
['/reference/routines/set', 'Set routines'],
64-
['/reference/routines/sort', 'Sorting, searching, and counting'],
65-
['/reference/routines/statistics', 'Statistics'],
66-
['/reference/routines/testing', 'Test Support (numpy.testing)'],
67-
['/reference/routines/window', 'Window functions']
37+
['/en/reference/routines/', 'Index'],
38+
['/en/reference/routines/array-creation', 'Array creation routines'],
39+
['/en/reference/routines/array-manipulation', 'Array manipulation routines'],
40+
['/en/reference/routines/bitwise', 'Binary operations'],
41+
['/en/reference/routines/char', 'String operations'],
42+
['/en/reference/routines/ctypeslib', 'C-Types Foreign Function Interface (numpy.ctypeslib)'],
43+
['/en/reference/routines/datetime', 'Datetime Support Functions'],
44+
['/en/reference/routines/dtype', 'Data type routines'],
45+
['/en/reference/routines/dual', 'Optionally Scipy-accelerated routines (numpy.dual)'],
46+
['/en/reference/routines/emath', 'Mathematical functions with automatic domain (numpy.emath)'],
47+
['/en/reference/routines/err', 'Floating point error handling'],
48+
['/en/reference/routines/fft', 'Discrete Fourier Transform (numpy.fft)'],
49+
['/en/reference/routines/financial', 'Financial functions'],
50+
['/en/reference/routines/functional', 'Functional programming'],
51+
['/en/reference/routines/help', 'NumPy-specific help functions'],
52+
['/en/reference/routines/indexing', 'Indexing routines'],
53+
['/en/reference/routines/io', 'Input and output'],
54+
['/en/reference/routines/linalg', 'Linear algebra (numpy.linalg)'],
55+
['/en/reference/routines/logic', 'Logic functions'],
56+
['/en/reference/routines/ma', 'Masked array operations'],
57+
['/en/reference/routines/math', 'Mathematical functions'],
58+
['/en/reference/routines/matlib', 'Matrix library (numpy.matlib)'],
59+
['/en/reference/routines/other', 'Miscellaneous routines'],
60+
['/en/reference/routines/padding', 'Padding Arrays'],
61+
['/en/reference/routines/polynomials', 'Polynomials'],
62+
['/en/reference/routines/random', 'Random sampling (numpy.random)'],
63+
['/en/reference/routines/set', 'Set routines'],
64+
['/en/reference/routines/sort', 'Sorting, searching, and counting'],
65+
['/en/reference/routines/statistics', 'Statistics'],
66+
['/en/reference/routines/testing', 'Test Support (numpy.testing)'],
67+
['/en/reference/routines/window', 'Window functions']
6868
]
6969
}, {
7070
title: 'Packaging(numpy.distutils)',
7171
collapsable: true,
7272
sidebarDepth: 3,
7373
children: [
74-
['/reference/distutils', 'Packaging(numpy.distutils)']
74+
['/en/reference/distutils', 'Packaging(numpy.distutils)']
7575
]
7676
}, {
7777
title: 'NumPy Distutils - Users Guide',
7878
collapsable: true,
7979
sidebarDepth: 3,
8080
children: [
81-
['/reference/distutils_guide', 'NumPy Distutils - Users Guide']
81+
['/en/reference/distutils_guide', 'NumPy Distutils - Users Guide']
8282
]
8383
}, {
8484
title: 'NumPy C-API',
8585
collapsable: true,
8686
sidebarDepth: 3,
8787
children: [
88-
['/reference/c-api/', 'Index'],
89-
['/reference/c-api/types-and-structures', 'Python Types and C-Structures'],
90-
['/reference/c-api/config', 'System configuration'],
91-
['/reference/c-api/dtype', 'Data Type API'],
92-
['/reference/c-api/array', 'Array API'],
93-
['/reference/c-api/iterator', 'Array Iterator API'],
94-
['/reference/c-api/ufunc', 'UFunc API'],
95-
['/reference/c-api/generalized-ufuncs', 'Generalized Universal Function API'],
96-
['/reference/c-api/coremath', 'NumPy core libraries'],
97-
['/reference/c-api/deprecations', 'C API Deprecations']
88+
['/en/reference/c-api/', 'Index'],
89+
['/en/reference/c-api/types-and-structures', 'Python Types and C-Structures'],
90+
['/en/reference/c-api/config', 'System configuration'],
91+
['/en/reference/c-api/dtype', 'Data Type API'],
92+
['/en/reference/c-api/array', 'Array API'],
93+
['/en/reference/c-api/iterator', 'Array Iterator API'],
94+
['/en/reference/c-api/ufunc', 'UFunc API'],
95+
['/en/reference/c-api/generalized-ufuncs', 'Generalized Universal Function API'],
96+
['/en/reference/c-api/coremath', 'NumPy core libraries'],
97+
['/en/reference/c-api/deprecations', 'C API Deprecations']
9898
]
9999
}, {
100100
title: 'NumPy internals',
101101
collapsable: true,
102102
sidebarDepth: 3,
103103
children: [
104-
['/reference/internals/', 'Index'],
105-
['/reference/internals/code-explanations', 'NumPy C Code Explanations'],
106-
['/reference/internals/alignment', 'Memory Alignment']
104+
['/en/reference/internals/', 'Index'],
105+
['/en/reference/internals/code-explanations', 'NumPy C Code Explanations'],
106+
['/en/reference/internals/alignment', 'Memory Alignment']
107107
]
108108
}, {
109109
title: 'NumPy and SWIG',
110110
collapsable: true,
111111
sidebarDepth: 3,
112112
children: [
113-
['/reference/swig/', 'Index'],
114-
['/reference/swig/interface-file', 'numpy.i: a SWIG Interface File for NumPy'],
115-
['/reference/swig/testing', 'Testing the numpy.i Typemaps']
113+
['/en/reference/swig/', 'Index'],
114+
['/en/reference/swig/interface-file', 'numpy.i: a SWIG Interface File for NumPy'],
115+
['/en/reference/swig/testing', 'Testing the numpy.i Typemaps']
116116
]
117117
}]
118118
}

0 commit comments

Comments
 (0)