Skip to content

Commit 3eea893

Browse files
committed
Removed "cilexer" dependency from sphinx and updated manual accordingly. Fixed incorrectly rendered userguide pages. [ci skip]
1 parent 1bbd447 commit 3eea893

12 files changed

Lines changed: 38 additions & 136 deletions

File tree

contributing/documentation.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,10 @@ Tools Required
3636
**************
3737

3838
To see the rendered HTML, ePub, PDF, etc., you will need to install Sphinx
39-
along with the PHP domain extension for Sphinx. The underlying requirement
40-
is to have Python installed. Lastly, you will install the CI Lexer for
41-
Pygments, so that code blocks can be properly highlighted.
39+
along with the PHP domain extension for Sphinx. The underlying requirement
40+
is to have Python installed.
4241

43-
.. code-block:: bash
44-
45-
easy_install "sphinx==1.4.5"
46-
easy_install sphinxcontrib-phpdomain
47-
48-
Then follow the directions in the README file in the :samp:`cilexer` folder
49-
inside the documentation repository to install the CI Lexer.
42+
You can read more about installing all tools in /user_guide_src/README.rst
5043

5144
*****************************************
5245
Page and Section Headings and Subheadings

user_guide_src/README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ output it to various formats. Pages are written in human-readable
1313
Prerequisites
1414
=============
1515

16-
Sphinx requires Python, which is already installed if you are running OS X.
16+
Sphinx requires Python 2, which may already be installed if you are running OS X or Linux.
1717
You can confirm in a Terminal window by executing the ``python`` command
1818
without any parameters. It should load up and tell you which version you have
19-
installed. If you're not on 2.7+, go ahead and install 2.7.2 from
20-
http://python.org/download/releases/2.7.2/
19+
installed. If you're not on 2.7+, go ahead and install 2.7+ from
20+
`Python.org <https://www.python.org/downloads/>`_
2121

2222
Installation
2323
============
2424

25-
1. Install `easy_install <http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install>`_
26-
2. ``easy_install "sphinx==1.8.5"``
27-
3. ``easy_install sphinxcontrib-phpdomain``
28-
4. Install the CI Lexer which allows PHP, HTML, CSS, and JavaScript syntax highlighting in code examples (see *cilexer/README*)
25+
1. Install `pip <https://packaging.python.org/guides/installing-using-linux-tools/>`_ (package manager).
26+
2. ``pip install "sphinx==1.8.5"``
27+
3. ``pip install "sphinxcontrib-phpdomain>=0.7.0"``
28+
4. Reboot your operating system
2929
5. ``cd user_guide_src``
3030
6. ``make html``
3131

@@ -59,5 +59,5 @@ simply delete the *build* folder's contents and rebuild.
5959
Style Guideline
6060
***************
6161

62-
Please refer to source/contributing/documentation.rst for general guidelines for
62+
Please refer to /contributing/documentation.rst for general guidelines for
6363
using Sphinx to document CodeIgniter.

user_guide_src/cilexer/README

Lines changed: 0 additions & 22 deletions
This file was deleted.

user_guide_src/cilexer/cilexer/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

user_guide_src/cilexer/cilexer/cilexer.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

user_guide_src/cilexer/setup.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

user_guide_src/source/changelogs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Release Date: Not Released
1616
:titlesonly:
1717

1818
next
19+
v4.0.0
1920
v4.0.0-rc.4
2021
v4.0.0-rc.3
2122
v4.0.0-rc.2

user_guide_src/source/changelogs/next.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ Version |version|
33

44
Release Date: Not released
55

6-
**Next alpha release of CodeIgniter4**
6+
**Next release of CodeIgniter4**
77

88

99
The list of changed files follows, with PR numbers shown.
1010

1111

1212
PRs merged:
1313
-----------
14-

user_guide_src/source/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
# The short X.Y version.
5454
version = '4.0-dev'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '4.0.0-rc.4'
56+
release = '4.0.2'
5757

5858
# The language for content autogenerated by Sphinx. Refer to documentation
5959
# for a list of supported languages.
@@ -85,7 +85,8 @@
8585

8686
# The name of the Pygments (syntax highlighting) style to use.
8787
pygments_style = 'trac'
88-
highlight_language = 'ci'
88+
highlight_language = 'html+php'
89+
highlight_options = {'startinline':True}
8990

9091
# A list of ignored prefixes for module index sorting.
9192
#modindex_common_prefix = []

user_guide_src/source/general/ajax.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Here's how to force the ``X-Requested-With`` header to be sent in the Fetch API
1111
Fetch API
1212
=========
1313

14+
.. code-block:: javascript
15+
1416
fetch(url, {
1517
method: "get",
1618
headers: {
@@ -29,23 +31,29 @@ jQuery
2931

3032
For libraries like jQuery for example, it is not necessary to make explicit the sending of this header, because according to the official documentation <https://api.jquery.com/jquery.ajax/> it is a standard header for all requests ``$.ajax()``. But if you still want to force the shipment to not take risks, just do it as follows:
3133

34+
.. code-block:: javascript
35+
3236
$.ajax({
3337
url: "your url",
3438
3539
headers: {'X-Requested-With': 'XMLHttpRequest'}
3640
37-
});
41+
});
3842
3943
4044
VueJS
4145
=====
4246

4347
In VueJS you just need to add the following code to the ``created`` function, as long as you are using Axios for this type of request.
4448

49+
.. code-block:: javascript
50+
4551
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
4652
4753
4854
React
4955
=====
5056

57+
.. code-block:: javascript
58+
5159
axios.get("your url", {headers: {'Content-Type': 'application/json'}})

0 commit comments

Comments
 (0)