=============================
How to update landing page
=============================

**Goal**

Mark service as depricated

.. image:: faq_images/storage_component_overview.png
   :target: faq_images/storage_component_overview.png
   :alt: storage_component_overview

1)**Create fork on gitea**

You need to create fork only in case  you don’t have existing  already

.. image:: faq_images/infra_otc_metadata.png
   :target: faq_images/infra_otc_metadata.png
   :alt: infra_otc_metadata

https://gitea.eco.tsi-dev.otc-service.com/marmulle/otc-metadata/src/branch/main/otc_metadata/data/documents

2)**Sync fork**

Sync work with main currently do not support sync in console and you need to do it manually.

- you need to configure .ssh/config.ssh/config

.. code-block:: text

   Host gitea.eco.tsi-dev.otc-service.com
   User git
   Port 2222
   HostName gitea.eco.tsi-dev.otc-service.com
   IdentityFile ~/.ssh/id_rsa

You should be able to ssh gitea and get You've successfully authenticated  message.

.. code-block:: text

 ssh gitea.eco.tsi-dev.otc-service.com

Clone your branch, not main:

.. code-block:: text

   git clone ssh://git@gitea.eco.tsi-dev.otc-service.com:2222/marmulle/otc-metadata.git

Then follow instructions to recover fork: https://gitea.eco.tsi-dev.otc-service.com/docs/doc-exports/wiki/Recovering-Fork

3)**Update necessary file**

In this case I was updating obs-swiftapi.yaml located in https://gitea.eco.tsi-dev.otc-service.com/marmulle/otc-metadata/src/branch/main/otc_metadata/data/documents

4)**Propose file changes**

After update file propose file changes. Name of branch or pull request should be as short as possible,but meaningful.

.. image:: faq_images/propose_file_change.png
   :target: faq_images/propose_file_change.png
   :alt: faq_file_change

5)**Create new pull request**

Change destination branch into infra:main and click New Pull Request.

.. image:: faq_images/gitea_new_pull_request.png
   :target: faq_images/gitea_new_pull_request.png
   :alt: gitea_new_pull_request

Change destination branch into infra:main and click New Pull Request

.. image:: faq_images/gitea_new_pull_request2.png
   :target: faq_images/gitea_new_pull_request2.png
   :alt: gitea_new_pull_request2

Once again -  New Pull Request

.. image:: faq_images/gitea_new_pull_request3.png
   :target: faq_images/gitea_new_pull_request3.png
   :alt: gitea_new_pull_request3

6)**New pull request  approve, gate**

.. image:: faq_images/gitea_new_pull_request_approve_gate.png
   :target: faq_images/gitea_new_pull_request_approve_gate.png
   :alt: gitea_new_pull_request_approve_gate

7)**Delete branch**
