mirror of
https://github.com/LCPQ/quantum_package
synced 2025-04-16 13:39:32 +02:00
Auto insert HTTP links to other modules in the README.rst file.
This commit is contained in:
parent
166df2ba8d
commit
f0cba523df
@ -9,6 +9,7 @@ README="README.rst"
|
|||||||
Assum_key="Assumptions\n===========\n"
|
Assum_key="Assumptions\n===========\n"
|
||||||
Needed_key="Needed Modules\n==============\n"
|
Needed_key="Needed Modules\n==============\n"
|
||||||
Sentinel="@@$%&@@"
|
Sentinel="@@$%&@@"
|
||||||
|
URL="http://github.com/LCPQ/quantum_package/tree/master/src/"
|
||||||
|
|
||||||
|
|
||||||
def fetch_splitted_data():
|
def fetch_splitted_data():
|
||||||
@ -66,7 +67,8 @@ def update_assumptions(data):
|
|||||||
|
|
||||||
|
|
||||||
def update_needed(data):
|
def update_needed(data):
|
||||||
"""Read the NEEDED_MODULES file, and replace the data with it."""
|
"""Read the NEEDED_MODULES file, and replace the data with it.
|
||||||
|
Create the links to the GitHub pages."""
|
||||||
|
|
||||||
file = open('NEEDED_MODULES','r')
|
file = open('NEEDED_MODULES','r')
|
||||||
modules = file.read()
|
modules = file.read()
|
||||||
@ -78,7 +80,8 @@ def update_needed(data):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if modules.strip() != "":
|
if modules.strip() != "":
|
||||||
modules = "\n".join(map(lambda x: '* %s'%(x), modules.split()))
|
modules = [ '* `%s <%s%s>`_'%(x,URL,x) for x in modules.split() ]
|
||||||
|
modules = "\n".join(modules)
|
||||||
modules = Needed_key + header + modules + '\n\n'
|
modules = Needed_key + header + modules + '\n\n'
|
||||||
|
|
||||||
has_modules = False
|
has_modules = False
|
||||||
|
@ -8,7 +8,7 @@ Needed Modules
|
|||||||
.. Do not edit this section. It was auto-generated from the
|
.. Do not edit this section. It was auto-generated from the
|
||||||
.. NEEDED_MODULES file.
|
.. NEEDED_MODULES file.
|
||||||
|
|
||||||
* Ezfio_files
|
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
|
||||||
* Nuclei
|
* `Nuclei <http://github.com/LCPQ/quantum_package/tree/master/src/Nuclei>`_
|
||||||
* Utils
|
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
|
||||||
|
|
||||||
|
@ -9,10 +9,10 @@ Needed Modules
|
|||||||
.. Do not edit this section. It was auto-generated from the
|
.. Do not edit this section. It was auto-generated from the
|
||||||
.. NEEDED_MODULES file.
|
.. NEEDED_MODULES file.
|
||||||
|
|
||||||
* AOs
|
* `AOs <http://github.com/LCPQ/quantum_package/tree/master/src/AOs>`_
|
||||||
* Electrons
|
* `Electrons <http://github.com/LCPQ/quantum_package/tree/master/src/Electrons>`_
|
||||||
* Ezfio_files
|
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
|
||||||
* MOs
|
* `MOs <http://github.com/LCPQ/quantum_package/tree/master/src/MOs>`_
|
||||||
* Nuclei
|
* `Nuclei <http://github.com/LCPQ/quantum_package/tree/master/src/Nuclei>`_
|
||||||
* Utils
|
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
|
||||||
|
|
||||||
|
@ -24,5 +24,5 @@ Needed Modules
|
|||||||
.. Do not edit this section. It was auto-generated from the
|
.. Do not edit this section. It was auto-generated from the
|
||||||
.. NEEDED_MODULES file.
|
.. NEEDED_MODULES file.
|
||||||
|
|
||||||
* Ezfio_files
|
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ Needed Modules
|
|||||||
.. Do not edit this section. It was auto-generated from the
|
.. Do not edit this section. It was auto-generated from the
|
||||||
.. NEEDED_MODULES file.
|
.. NEEDED_MODULES file.
|
||||||
|
|
||||||
* AOs
|
* `AOs <http://github.com/LCPQ/quantum_package/tree/master/src/AOs>`_
|
||||||
* Ezfio_files
|
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
|
||||||
* Nuclei
|
* `Nuclei <http://github.com/LCPQ/quantum_package/tree/master/src/Nuclei>`_
|
||||||
* Utils
|
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
|
||||||
|
|
||||||
|
@ -8,6 +8,6 @@ Needed Modules
|
|||||||
.. Do not edit this section. It was auto-generated from the
|
.. Do not edit this section. It was auto-generated from the
|
||||||
.. NEEDED_MODULES file.
|
.. NEEDED_MODULES file.
|
||||||
|
|
||||||
* Ezfio_files
|
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
|
||||||
* Utils
|
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
|
||||||
|
|
||||||
|
@ -6,3 +6,5 @@ Output Module
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,12 +109,12 @@ Needed Modules
|
|||||||
.. Do not edit this section. It was auto-generated from the
|
.. Do not edit this section. It was auto-generated from the
|
||||||
.. NEEDED_MODULES file.
|
.. NEEDED_MODULES file.
|
||||||
|
|
||||||
* AOs
|
* `AOs <http://github.com/LCPQ/quantum_package/tree/master/src/AOs>`_
|
||||||
* Bitmask
|
* `Bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask>`_
|
||||||
* Electrons
|
* `Electrons <http://github.com/LCPQ/quantum_package/tree/master/src/Electrons>`_
|
||||||
* Ezfio_files
|
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
|
||||||
* MOs
|
* `MOs <http://github.com/LCPQ/quantum_package/tree/master/src/MOs>`_
|
||||||
* Nuclei
|
* `Nuclei <http://github.com/LCPQ/quantum_package/tree/master/src/Nuclei>`_
|
||||||
* Output
|
* `Output <http://github.com/LCPQ/quantum_package/tree/master/src/Output>`_
|
||||||
* Utils
|
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
|
||||||
|
|
||||||
|
@ -20,3 +20,5 @@ Needed Modules
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user