Skip to content

Commit

Permalink
Add step by step guide for editing with Github
Browse files Browse the repository at this point in the history
Related: TYPO3-Documentation#20
Related: TYPO3-Documentation#27

- use new terms "Edit me on Github Workflow" and "Local Editing and Rendering with Docker"
- add quick start on entry page with steps for editing on Github
- add screenshots
- add information and image for Developer Appreciation Day (DAD).
  • Loading branch information
sypets committed Nov 25, 2018
1 parent 9d09ebf commit 3e4bed6
Show file tree
Hide file tree
Showing 16 changed files with 284 additions and 282 deletions.
4 changes: 2 additions & 2 deletions Documentation/BasicPrinciples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The things that are different for various kinds of documentation are:
etc.
:Issues: On page of rendered docs, click on "Related links": "Issues"
:Source: On page of rendered docs, click on "Related Links": "Repository", or click on "Edit me on Github"
:Workflow: Create Github Pull Request, see :ref:`docs-official-index`.
:Workflow: Create Github Pull Request, see :ref:`docs-contribute`.

- :Type: `TYPO3 Core Changelog <https://docs.typo3.org/typo3cms/extensions/core/latest/>`__
:Issues: Core issues: https://forge.typo3.org/projects/typo3cms-core/issues
Expand Down Expand Up @@ -138,7 +138,7 @@ Official TYPO3 manuals
The official TYPO3 manuals are hosted on Github. Editing the documentation
requires a Github account and involves creating a Pull Request on Github.

Find out more about how to contribute: :ref:`docs-official-index`.
Find out more about how to contribute: :ref:`docs-contribute`.

Documentation for the core
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ t3install = https://docs.typo3.org/typo3cms/InstallationGuide/
# t3security = https://docs.typo3.org/typo3cms/SecurityGuide/
# t3services = https://docs.typo3.org/typo3cms/Typo3ServicesReference/
# t3skinning = https://docs.typo3.org/typo3cms/SkinningReference/
# t3start = https://docs.typo3.org/typo3cms/GettingStartedTutorial/
t3start = https://docs.typo3.org/typo3cms/GettingStartedTutorial/
# t3tca = https://docs.typo3.org/typo3cms/TCAReference/
# t3templating = https://docs.typo3.org/typo3cms/TemplatingTutorial/
# t3ts45 = https://docs.typo3.org/typo3cms/TyposcriptIn45MinutesTutorial/
Expand Down
71 changes: 3 additions & 68 deletions Documentation/WritingDocsOfficial/GithubMethod.rst
Original file line number Diff line number Diff line change
@@ -1,72 +1,7 @@
:orphan:

.. include:: ../Includes.txt
.. highlight:: rst

This page was moved to :ref:`docs-contribute-github-method`.


.. _docs-contribute-github-method:

=================================
Contribute with the Github method
=================================

Basic considerations
====================

In any case, you will need a Github account, go to
https://github.com/join.

You can contribute to the documentation by editing directly on Github
by clicking on "Edit me on Github" in the top right corner of any page.

.. image:: ../images/edit_me_on_github.png
:class: with-shadow

This can be used for minor changes.

If you wish to make extensive changes or use sphinx specific markup
(.e.g. intersphinx linking) it is recommended to use the :ref:`git/docker
<docs-contribute-git-docker>` method because via local rendering with
docker, you will get the best results and can detect errors before you
submit your pull request. The docker container uses the
same toolchain as on the documentation server.

With the Github Preview, you will not see how the menu is rendered,
you will not see some specific markup in action and it will not show
all errors correctly.

That being said, we recommend to try out the Github method, because it is
a way to quickly make changes, but use the :ref:`git/docker
<docs-contribute-git-docker>` method in the long run for larger
changes.


Getting started
===============

.. _github-method-youtube:

Youtube Tutorial - Github method
--------------------------------

Watch the official YouTube video `Tutorial - Contribute to
docs.typo3.org <https://www.youtube.com/watch?v=wNxO-aXY5Yw>`__
to get started.



2018-01-19 by Mathias Schreiber

.. youtube:: wNxO-aXY5Yw

Additional information
----------------------

Even though you can make minor changes very easily and do not need
to know everything about reST formatting, it is a good idea to go
back to this manual from time to time and familiarize
yourself with the basics:

* It is recommended to read the :ref:`writing-rest-introduction`
and the general :ref:`format-rest-cgl` first.
* Look up specific reST format (e.g. embed images, embed YouTube
Videos, use lists, headers, bold etc.): :ref:`Formatting-with-reST`.
168 changes: 114 additions & 54 deletions Documentation/WritingDocsOfficial/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,143 @@
.. highlight:: rst


.. _docs-official-index:
.. _docs-contribute:
.. _how-to-contribute:
.. _docs-contribute-github-method:

======================================
Contributing to official documentation
======================================
============================
Contribute to docs.typo3.org
============================

The community is welcome to make changes to the documentation.
The community is welcome to make changes to the documentation. Any
help is appreciated!

If you need help, contact us in the **Slack** channel
**#typo3-documentation**. If you do not yet have a Slack account,
see :ref:`slack` for more information.
You can start with very minimal knowledge and learn as
you go along.

This chapter explains how to make changes to the official
documentation on `docs.typo3.org <https://docs.typo3.org>`__.

**Getting started**
Your changes will not be visible right away, someone
must merge them. So, don't worry about breaking something!

.. tip::

You can start with very minimal knowlege and learn as
you go along. If you find a page that needs changing on
https://docs.typo3.org, do not
hesitate to click on the "Edit me on Github" button and
proceed.

Remember, your changes will not be visible right away, someone
must merge them. So don't worry about breaking something!
If you are familiar with Git and Docker, you may want to skip
straight to :ref:`docs-contribute-git-docker`, which describes
the local workflow.

.. youtube:: wNxO-aXY5Yw


If you're stuck at any point, don't hesitate
to :ref:`ask for help <how-to-get-help>`.

.. rst-class:: bignums-xxl

1. Get a GitHub account:

`Join Github <https://github.com/join>`__

2. Find a page that needs fixing:

Pick a manual, for example :ref:`t3start:start` or :ref:`t3install:start`
and find a page there, that you want to change.

3. Click on "Edit me on Github":

You should find the button on the top right of any page!

.. image:: ../images/edit_me_on_github.png
:class: with-shadow

4. Fork the repository:

Click on the green button to fork the repository.

.. image:: ../images/github-edit-fork.png
:class: with-shadow

5. Make your changes:

You should now see an edit window where you can make your changes
directly. The settings *"Indent mode: Spaces"* and *"Indent size: 3"*
should already be correct, by default. Don't change that.

.. image:: ../images/github-edit-window.png
:class: with-shadow

6. Handling reST:

The files are written in reST format. You can :ref:`learn more about reST
<rest-quick-start>` when you need it. For fixing simple typos and editing
unformatted text, you should be ok without knowledge about reST.

7. Check Preview:

Click on "Preview changes" to see what you changed and how the final result
might look like.

Go back to the edit window and make more changes any time.

.. image:: ../images/github-edit-preview.png
:class: with-shadow

8. Finalize your changes:

When you are ready, scroll down to the bottom of the page. Add
a short (!) text describing your changes and click on "Propose
file change"

.. image:: ../images/github-propose-file-changes.png
:class: with-shadow

9. Create pull request:

Github will now show you an overview of your changes. If this is
ok, click on "Create pull request".

.. image:: ../images/github-comparing-changes.png
:class: with-shadow

And finally, create your pull request:

.. image:: ../images/github-create-pull-request2.png
:class: with-shadow

10. You're done!

Well, almost. Your change will now be reviewed. A reviewer might
suggest changes. Monitor your notifications (email) from Github. If at any
point, you are not sure what to do, don't hesitate to
:ref:`ask for help <how-to-get-help>`. When your pull request is accepted,
it will be merged. You will get a notification (email).

**Suggested reading order:**

Here is a suggestion how to
proceed (but depending on your experience and how you prefer to
work, you may want to just start right away, read in a
different order or skip some sections and come back here later).
That is all ok and up to you!
**Congratulations! You are now a contributor. Welcome and thank you!**

#. Get an introduction by looking a the :ref:`github-method-youtube`
#. Choose which workflow to use: :ref:`docs-official-workflow-methods`.
#. Do you already know what you want to do? If not, get inspiration:
:ref:`docs-official-how-you-can-help`
#. To get a better understanding of the documentation and the conventions
used, it can't hurt to look at :ref:`basic-principles`
#. Familiarize yourself with the language (reST and sphinx) by looking
at the source of existing docs (click on "View page source" at the
bottom of any documenation page) and reading:

* :ref:`general-conventions`
* and the beginning of :ref:`Formatting-with-reST`

#. Make your changes. Start small.
Wait a few minutes for the changes to be automatically rendered, and then
reload the page (which you fixed) in your browser.

Next month, you can find your name on the "Developer Appreciation Day"
(DAD) page on the `TYPO3 Blog <https://typo3.com/blog/tag/contribution/>`__.

See `June 2018: Developer Appreciation Day
<https://typo3.com/blog/june-2018-developer-appreciation-day-dad/?utm_medium=TYPO3%2BBlog&utm_source=Blog%2BPost%2B-%2BJune%2B2018%3A%2BDeveloper%2BAppreciation%2BDay%2B%28DAD%29>`__
for an example.

**Note about other documentation:**

Please note that some of the rendered documentation is
maintained elsewhere (e.g. Core Changelog, 3rdparty extensions). This chapter focuses on
making changes to the major manuals, maintained on `Github: TYPO3
Documentation <https://github.com/TYPO3-Documentation>`__, such
as:
.. image:: ../images/dad-with-image.png
:target: https://typo3.com/blog/june-2018-developer-appreciation-day-dad/?utm_medium=TYPO3%2BBlog&utm_source=Blog%2BPost%2B-%2BJune%2B2018%3A%2BDeveloper%2BAppreciation%2BDay%2B%28DAD%29
:class: with-shadow

* The `Tutorials and Guides <https://docs.typo3.org/typo3cms/GuidesAndTutorials/Index.html>`__,
* The `Core documenation <https://docs.typo3.org/typo3cms/References/Index.html>`_
(except for Changelog).
Scroll down to "Improving documentation":

Manuals, not maintained in the TYPO3-Documentation workspace on Github
must and usually can be edited elsewhere, see :ref:`overview-of-types`.
.. image:: ../images/dad-improve-docs.png
:target: https://typo3.com/blog/june-2018-developer-appreciation-day-dad/?utm_medium=TYPO3%2BBlog&utm_source=Blog%2BPost%2B-%2BJune%2B2018%3A%2BDeveloper%2BAppreciation%2BDay%2B%28DAD%29
:class: with-shadow



.. toctree::
:hidden:

WorkflowMethods
GithubMethod
Quickstart
LocalEditing
HowYouCanHelp
Loading

0 comments on commit 3e4bed6

Please sign in to comment.