Commit graph

95 commits

Author SHA1 Message Date
Jakub Zelenka
370f24290f
[ci skip] Fix example and add NEWS merging info to release process (#18159) 2025-03-27 22:38:52 +01:00
DanielEScherzer
1a468b6efc
Docs: add a page about zend_constant (GH-17072) 2025-02-14 12:49:57 +01:00
hakre
1668a1602a
Improve php-src docs sphinx build, also on *nix (GH-16743)
* Document .rst file maximum line length of 100

In 19d2b84788 ("Create book for docs", 2024-01-30) the build of the
php-src documentation has been introduced.

It is based on reStructuredText (rst) [Docutils] for its source files,
this stems from the sphinx-build utility in use to build the static HTML
pages of the php-src documentation.

The maximum line length of these text files has been set to 100
characters in 19d2b84788 ("Create book for docs", 2024-01-30), the
rationale is unknown to the documenting author at time of writing this
message.

This formatting constraint is applied with the rstfmt utility [rstfmt]
via its invocation (documented in CI build instructions and README.md:)

    rstfmt -w 100 source

The `-w, --width` option takes a WIDTH argument that is "the
target line length in characters" (cf. `rstfmt --help`.)

There is also an `--ext EXT` argument option, that is "the extension of
files to look at when passed a directory" ("source" is the name of
a directory in the invocation above) and defaults to "rst".

Henceforth, the editor configuration [EditorConfig] can benefit from
documenting this expectation in the repositories .editorconfig file,
which has been introduced already earlier in 5c38fbe543 ("Added
editorconfig file", 2016-06-26).

[Docutils]: https://docutils.sourceforge.io/index.html "Docutils: Documentation Utilities — Written in Python, for General- and Special-Purpose Use"
[rstfmt]: https://github.com/dzhu/rstfmt "A formatter for reStructuredText"
[EditorConfig]: https://editorconfig.org/ "EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs"

* Makefile for php-src docs build

In 19d2b84788 ("Create book for docs", 2024-01-30) the php-src
documentation (php-src docs) build has been introduced, yet the build
instructions, namely `make html`, did not yield the expected results
within the parenting setup of the php-src project on *nix systems.

The reason is that the `make html` build instruction does not execute
the make.bat file which contains the recipe to build the static HTML
pages.

It is an unused leftover file from initializing the project with
sphinx-quickstart. [1]

Removing it in and adding a Makefile suffices to recover the build of
php-src ./docs on a *nix system.

Formatting constraints checked in the docs workflow in CI update
use the make file to make sure the commands stay consistent and the
build is managed by the build manager.

[1]: https://www.sphinx-doc.org/en/master/man/sphinx-quickstart.html "sphinx-quickstart is an interactive tool that asks some questions about your project and then generates a complete documentation directory and sample Makefile to be used with sphinx-build(1)."

* Bind requirements.txt for php-src docs build

Define the required packages to install for the php-src docs build in
the docs/requirements.txt file:

1) Sphinx
2) sphinx-design
3) sphinxawesome-theme
4) rstfmt

This should also later on ease the use of a requirements_frozen.txt
file to pin the build dependencies if needed/wanted.

Additionally, some formatting corrections in README.md (based on the
profile in .editorconfig) as well as adding the recommendation to use
a Python virtual environment. Python3 and Pip were already named, and
with Python3 there is the venv module (Python 3.3; Sep 2012) to manage
these so-called python virtual environments [venv], which are commonly
a preferred way to install dependencies within development projects
and build systems.

[venv]: https://docs.python.org/3/library/venv.html "venv — Creation of virtual environments — Python documentation"

* Remove deprecated theme configuration

For the configured Awesome Sphinx Theme [1] highlighting extension, the
sphinx-build currently yields the following diagnostics:

     WARNING: while setting up extension sphinxawesome_theme.highlighting: \
     You no longer have to include the `sphinxawsome_theme.highlighting` \
     extension. This extension will be removed in the next major release.

(via `make html`, the configuration file is `source/conf.py`.)

The diagnostic message was introduced by sphinxawesome-theme 5.2.0,
  released May 31, 2024. [2], [3]

Removing the extension from the list of extensions in the configuration
file levitates.

No changes to requirements.txt, the extension was transitive as bundled
by the Awesome Sphinx Theme [1], and 5.2.0 deprecates it with the new
feature to "Support `pygments_style_dark` option that allows you to set
a different syntax highlighting scheme in light and dark modes." [3]

[1]: https://sphinxawesome.xyz/ "Awesome Sphinx Theme — Create functional and beautiful websites for your documentation with Sphinx."
[2]: https://pypi.org/project/sphinxawesome-theme/5.2.0/#history
[3]: https://github.com/kai687/sphinxawesome-theme/releases/tag/5.2.0
2024-11-29 19:29:00 +01:00
Christophe Coevoet
d411fdf615
Fix rST markup in the documentation about stubs (GH-16888) 2024-11-26 17:02:14 +01:00
DanielEScherzer
4a4574290f
[skip ci] docs: fix constant syntax in stubs.rst (#15785)
Constants are declared with `=` not `:`
2024-09-07 08:22:10 +01:00
Peter Kokot
13f041163c
Remove Travis artefacts (#15714)
Travis was suspended https://github.com/php/php-src/pull/15314

This removes 404 errored Travis image in README, travis configuration
directory and YAML file and usages in tests.

[skip ci]

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-09-04 01:15:10 +02:00
Peter Kokot
7ebdd7d05a
Trim trailing whitespace (#15649)
[skip ci]
2024-08-30 01:20:56 +02:00
Sergey Panteleev
0caaeb68cf
[ci skip] Update release process for pre-GA (#14988) 2024-07-17 17:55:03 +03:00
Michael
6bb960092a
[skip ci] Fix some typos (#14893) 2024-07-10 00:11:36 +01:00
Máté Kocsis
0f64901316
Document stubs (#13677)
Co-authored-by: Derick Rethans <github@derickrethans.nl>
2024-05-29 14:18:22 +02:00
Máté Kocsis
53de62561d
Fix some typos on the reference counting docs page 2024-04-30 22:16:45 +02:00
Niels Dossche
bca94e3420
[ci skip] Fix typo in release-process.md (#14012) 2024-04-20 10:46:07 +02:00
Derick Rethans
742c2e8458
Split out tasks from requested info, and fix typo 2024-04-18 13:42:26 +01:00
Derick Rethans
fe0e1d875b
Describe what you need to ask systems@php.net for 2024-04-18 13:39:36 +01:00
Peter Kokot
7b8a571f4a
Update the security.txt changes link (#13646)
[ci skip]
2024-03-09 20:29:05 +01:00
Michael Voříšek
c412919c93
Add hosted docs link to docs/README.md
Closes GH-13633
2024-03-08 12:56:19 +01:00
Jakub Zelenka
4bee528e7a Move back mailinglist-rules.md and release-process.md back to docs
Those are likely link from elsewhere so we could keep them
2024-02-28 11:21:26 +00:00
Ilija Tovilo
1bef861527
Add vscode chapter to docs
Closes GH-13441
2024-02-21 14:42:08 +01:00
Ilija Tovilo
a4dfa35f93
Fix docs typo 2024-02-18 20:31:54 +01:00
Ilija Tovilo
19d2b84788
Create book for docs
Closes GH-13338
2024-02-18 12:16:31 +01:00
Peter Kokot
eb76a83008
Remove PHP atomic includes and PHP_DEFINE M4 macro (#13372)
PHP_DEFINE was introduced with the PHP 5 build system
9d9d39a0de and then refactored via
350de12bc2.

This was once used to put defined constants into a single file to have
more fine-graned dependencies (atomic includes). Since no known PHP
extension is using this and it makes very little sense to use this, this
M4 macro can be removed in favor of the Autoconf native way using
AC_DEFINE and the usual included files php_config.h and config.h.

- Generated unused include directory removed
- Remove include dir from DEFS
- Remove also include dir from PDO checks
2024-02-11 22:14:46 +01:00
Derick Rethans
7aa2b6294b Moving this to php/policies 2024-02-06 11:39:12 +00:00
Gabriel Caruso
811c5ff2f4 [ci skip] PHP 8.0 is EOL
Following php/web-php#840, 670052c42 and php/web-qa#c7b24521eb1
2024-01-09 01:46:59 +01:00
Jakub Zelenka
0c29d5edb7
Update release-process docs with info about first version release (#12765)
This is some additional info that might help to future RM's - those are the bits that are stumbled and felt they need to be clarified when releasing PHP-8.3.0
2023-12-01 11:58:52 +00:00
George Peter Banyard
d86314939c Zend: Add ZPP F type check for callables that do not free trampolines
As refetching it with the new FCC API does get tedious
2023-10-10 13:44:21 +01:00
Ben Ramsey
65a8c70f93
Add instructions for updating security.txt in web-php (#12316)
[ci skip]
2023-10-05 13:39:45 -05:00
Christian Clauss
886bf820c9
[skip ci] Fix typos discovered by codespell (#12228) 2023-09-18 11:07:17 +01:00
Andreas Möller
4c92e7b392
Fix: Consistently use release-managers@php.net [skip ci] (#11752) 2023-07-21 10:35:51 +02:00
Ilija Tovilo
dde1d9e102
Merge branch 'PHP-8.2'
* PHP-8.2:
  Retire AppVeyor
2023-07-05 15:17:11 +02:00
Ilija Tovilo
80153c9c2b
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Retire AppVeyor
2023-07-05 15:16:01 +02:00
Ilija Tovilo
f47dc259aa
Retire AppVeyor
Closes GH-11566
2023-07-05 15:14:20 +02:00
Pierrick Charron
fe6263e243
[ci skip] Remove primary-qa-tester ML from release process 2023-06-20 17:02:23 -04:00
Ben Ramsey
ca1905116b
Add PHP 8.3 to release process doc; remove 7.4 2023-06-06 18:47:36 -05:00
Ben Ramsey
938ebb3b61
Add example commit message to release process doc 2023-06-06 18:16:54 -05:00
Pierrick Charron
79128afb92
[skip ci] Update release process to publish php-keyring.gpg in web-php 2023-06-02 15:13:37 -04:00
Max Kellermann
413844d626
Zend/zend_types.h: deprecate zend_bool, zend_intptr_t, zend_uintptr_t (#10597)
These types are standard C99.

For compatibility with out-of-tree extensions, keep the typedefs
in main/php.h.
2023-02-18 19:31:28 +00:00
Ben Ramsey
0493187024
Update RM doc with new PGP keyserver
[ci skip]
2023-02-16 11:18:56 -06:00
Ben Ramsey
35a4950ffa
Replace Azure DevOps link with GitHub Actions 2022-12-07 11:53:15 -06:00
Jorg Adam Sowa
77ee92a50c
Remove unnecessary usage of CONST_CS
Closes GH-9685.
2022-11-28 17:12:07 +01:00
Ben Ramsey
ba4e379971
[ci skip] update branch creation time frame in release process doc 2022-07-19 10:41:48 -05:00
Ben Ramsey
c8f9555a05
[ci skip] fix gen_verify_stub example command 2022-06-21 11:26:23 -05:00
Ben Ramsey
c83b57096a
[ci skip] Add list of repositories for RMs to clone 2022-06-08 19:03:02 -05:00
Ben Ramsey
82d1684e33
[ci skip] Update example commit messsages in RM doc 2022-06-08 18:49:35 -05:00
Ben Ramsey
526ee44534
[ci skip] Update and clarify release process document 2022-06-08 18:37:20 -05:00
Ben Ramsey
5a6436f0d6
[ci skip] Update RM documentation with latest notes 2022-06-07 14:51:51 -05:00
Derick Rethans
74202fac91 Adding "git pull" to make sure local check out is in sync (I keep forgetting that) 2022-06-07 09:45:11 +01:00
Ben Ramsey
d9de36398c
[ci skip] add example build commands to RM documentation 2022-06-04 10:04:16 -05:00
Ben Ramsey
9b0e391cf7
[ci skip] Mention selection of a veteran + 1 or 2 rookies 2022-05-03 19:38:24 -05:00
Christoph M. Becker
d312a0c800
[ci skip] We use multiple CI providers, not only Travis
These are already listed at the beginning of the document, so we don't
list them here again to avoid duplication.
2021-11-23 19:12:04 +01:00
Ben Ramsey
fda0ed58d3
Change release process to create branch at RC1 2021-07-20 11:58:08 -05:00