Skip to content

Commit

Permalink
Version with sitemap for cobblers
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheexakat committed Dec 18, 2023
1 parent b3b6a71 commit fa8c82f
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
75 changes: 75 additions & 0 deletions Reference/Cobblers/Constants/RenameConstant.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
.. _constants-renameconstant:

.. _rename-constant:

Rename Constant
+++++++++++++++
This cobbler renames a constant and replace it with another constant.

.. _rename-constant-before:

Before
______
.. code-block:: php
<?php
const A = 1;
echo A;
echo \A;
?>
.. _rename-constant-after:

After
_____
.. code-block:: php
<?php
const B = 1;
echo B;
echo \B;
?>
.. _rename-constant-destination:

Parameters
__________

+-------------+---------+--------+---------------------------------+
| Name | Default | Type | Description |
+-------------+---------+--------+---------------------------------+
| origin | | string | The constant to rename |
+-------------+---------+--------+---------------------------------+
| destination | | string | The destination's constant name |
+-------------+---------+--------+---------------------------------+

.. _rename-constant-reverse-cobbler:

Reverse Cobbler
_______________

* :ref:`rename-constant`



.. _rename-constant-specs:

Specs
_____

+----------------+--------------------------+
| Short Name | Constants/RenameConstant |
+----------------+--------------------------+
| Exakat version | 2.3.0 |
+----------------+--------------------------+
| Available in | |
+----------------+--------------------------+


8 changes: 7 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# built documents.
#
# The short X.Y version.
version = u'2.3.6'
version = u'2.6.4'
# The full version, including alpha/beta/rc tags.
release = u'1'

Expand Down Expand Up @@ -291,3 +291,9 @@
from pygments.lexers.web import PhpLexer
lexers["php"] = PhpLexer(startinline=True, linenos=1)
lexers["php-annotations"] = PhpLexer(startinline=True, linenos=1)

html_extra_path = ["googlee919cb0917e4fefc.html",
"robots.txt",
"sitemap-rulesets.xml",
"sitemap-cobblers.xml"
]

0 comments on commit fa8c82f

Please sign in to comment.