diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/1234/index.html b/1234/index.html new file mode 100644 index 0000000..a8a6b2d --- /dev/null +++ b/1234/index.html @@ -0,0 +1,15 @@ + + + +
+ +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +education, socio-economic status, nationality, personal appearance, race, +religion, or sexual identity and orientation.
+Examples of behaviour that contributes to creating a positive environment +include:
+Examples of unacceptable behaviour by participants include:
+Project maintainers are responsible for clarifying the standards of acceptable +behaviour and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behaviour.
+Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful.
+This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers.
+Instances of abusive, harassing, or otherwise unacceptable behaviour may be +reported by contacting the project team. All complaints will be reviewed and +investigated and will result in a response that is deemed necessary and +appropriate to the circumstances. The project team is obligated to maintain +confidentiality with regard to the reporter of an incident. Further details of +specific enforcement policies may be posted separately.
+Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership.
+This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
First off, thanks for taking the time to contribute! 🎉 😘 ✨
+The following is a set of guidelines for contributing to this project. +These are mostly guidelines, not rules. Use your best judgment, and +feel free to propose changes to this document in a pull request.
+Bugs are tracked as GitHub issues. Search the list and try reproduce on your +local machine with a clean profile before you create an issue. +When you create an issue, please provide the following information by filling +in the template.
+Explain the problem and include additional details to help maintainers reproduce the problem:
+In case you want to suggest an enhancement, please follow this guideline to +help maintainers and the community understand your suggestion. +Before creating suggestions, please check issue +list if +there's already a request.
+Create an issue and provide the following information:
+Unsure where to begin contributing? You can start by looking
+through these document
, good first issue
and help wanted
issues:
pip install -r REQUIREMENTS-dev.txt
Run the pylance extension and make sure all the tests pass.
+Run TODO
and verify all the tests pass.
+If you are adding new commands or features, they must include tests.
+If you are changing functionality, update the tests if you need to.
Follow our commit message conventions.
+Make your pull request, then describe your changes.
+Follow other PR title format on below.
+ <Type>: Short Description (fix #111)
+ <Type>: Short Description (fix #123, #111, #122)
+ <Type>: Short Description (ref #111)
+
If it has related issues, add links to the issues(like #123
) in the description.
+Fill in the Pull Request Template by check your case.
This project and everyone participating in it is governed by the Code of +Conduct. By participating, you are expected to uphold this +code. Please report unacceptable behaviour to tim@kartoza.com.
++This guide is based on atom contributing +guide, +CocoaPods +and ESLint
+
Disclaimer about project.
Published under AGPL-3. See the full license text.
+Contributor | +GitHub Handle | ++ |
---|---|---|
Tim Sutton | +timlinux | ++ |
Jeremy Prior | +Jeremy-Prior | ++ |
Ketan Bamniya | +ketankartoza | ++ |
This project was conceptualized and initially funded by FUNDER_1.
+Another fine project contributed to by: Kartoza.com +
Version 3, 19 November 2007 +Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
+Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed.
+The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software.
+The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users.
+When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things.
+Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software.
+A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public.
+The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version.
+An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license.
+The precise terms and conditions for copying, distribution and +modification follow.
+“This License” refers to version 3 of the GNU Affero General Public License.
+“Copyright” also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks.
+“The Program” refers to any copyrightable work licensed under this +License. Each licensee is addressed as “you”. “Licensees” and +“recipients” may be individuals or organizations.
+To “modify” a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a “modified version” of the +earlier work or a work “based on” the earlier work.
+A “covered work” means either the unmodified Program or a work based +on the Program.
+To “propagate” a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well.
+To “convey” a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying.
+An interactive user interface displays “Appropriate Legal Notices” +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion.
+The “source code” for a work means the preferred form of the work +for making modifications to it. “Object code” means any non-source +form of a work.
+A “Standard Interface” means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language.
+The “System Libraries” of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +“Major Component”, in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it.
+The “Corresponding Source” for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work.
+The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source.
+The Corresponding Source for a work in source code form is that +same work.
+All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law.
+You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you.
+Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary.
+No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures.
+When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures.
+You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program.
+You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee.
+You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions:
+A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +“aggregate” if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate.
+You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways:
+A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work.
+A “User Product” is either (1) a “consumer product”, which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, “normally used” refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product.
+“Installation Information” for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made.
+If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM).
+The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network.
+Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying.
+“Additional permissions” are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions.
+When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission.
+Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms:
+All other non-permissive additional terms are considered “further +restrictions” within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying.
+If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms.
+Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way.
+You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11).
+However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation.
+Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice.
+Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10.
+You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so.
+Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License.
+An “entity transaction” is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts.
+You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it.
+A “contributor” is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's “contributor version”.
+A contributor's “essential patent claims” are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, “control” includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License.
+Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version.
+In the following three paragraphs, a “patent license” is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To “grant” such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party.
+If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. “Knowingly relying” means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid.
+If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it.
+A patent license is “discriminatory” if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007.
+Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law.
+If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program.
+Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph.
+Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License.
+The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns.
+Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License “or any later version” applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation.
+If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program.
+Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version.
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES.
+If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee.
+END OF TERMS AND CONDITIONS
+If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms.
+To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the “copyright” line and a pointer to where the full notice is found.
+<one line to give the program's name and a brief idea of what it does.>
+Copyright (C) <year> <name of author>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
Also add information on how to contact you by electronic and paper mail.
+If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a “Source” link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements.
+You should also get your employer (if you work as a programmer) or school, +if any, to sign a “copyright disclaimer” for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +<http://www.gnu.org/licenses/>.
This is the homepage for all administrator related documentation.
+The content is divided into two sections:
+This is the homepage for all API related documentation.
+This section describes how the context help system works.
+The context help system provides an integration between the web application and the documentation.
+ +The following concepts are used:
+There are three ways to trigger context help:
+We manage the context help system from django admin. You need to be a staff user to do this and have been granted read/write/update permissions on the documentation center related tables. First open your user menu 1️⃣ and then the Django Admin area 2️⃣.
+ +Next we can drill into the documentation center to see only the relevant admin activities 1️⃣.
+ +Our first activity is to edit the site preferences 1️⃣.
+ +Here our goal is to set the documentation base url for the context help system 1️⃣. Use the URL for your documentation project i.e. https://unicef-drp.github.io/GeoSight-OS
+ +Next we need to create pages for each application end point where we want to include context sensitive help. First select pages 1️⃣ from the documentation center menu:
+ +Now you can edit an existing page 1️⃣ or add a new one 2️⃣:
+ +The page properties you can set are going to determine how the context help panel appears in the application when triggering the help panel 1️⃣:
+ +Here is a detailed breakdown of the options:
+1️⃣ Name: A symbolic name for you to easily recognise what the context help is about
+2️⃣ Relative page url: This is the relative path to our application page (see underline in image above) e.g. /admin/importer/
+3️⃣ Url: This is where the documentation is, relative to the documentation base URL. For example if your docs base URL is at: https://unicef-drp.github.io/GeoSight-OS/ your help context document relative URL is /administrator/guide/. This will trigger the content panel link 3️⃣ above to point to this page.
+4️⃣ Title: This will be displayed as 1️⃣ above in the context help panel.
+5️⃣ Intro: This will be shown as lead-in text for the context help panel. See 2️⃣ above.
+ +On the page form you can also manage the blocks that appear in the context help.
+You can view and manage existing blocks from the documentation center 1️⃣ or add a new block 2️⃣. We first create a block then go back to the page to add it to the page.
+ +We can also create a new block directly from within a page.
+Let's create a new block within the context of an existing page (this is the more normal workflow).
+ +Because we have created it within the page form, the block form appears as a popup window. We can deal with the form components as follows:
+⚠️ As you can see, the block definition requires only minimal information - the URL and optionally the anchor on the page. Anything else you specify here will override information harvested from the page and likely make your documentation more difficult to maintain.
+ +Generally we will not directly use the PageBlocks management area - use the Page manager to add and remove blocks from your page.
+The system for context help has been designed in a generic way. That means that you can use any web site where you can reference content with page links and anchors.
+⛔️ One word of caution. Do not use a web site as your documentation source if you do not control that site. The content from the help site is pulled directly into your application, which could put you in a compromising position if the content is not 'on message' for your organisation.
This document describes the easiest workflow for editing documentation.
+Requirements:
+.
key on your keyboard.Commit and push
button.Any new page you create needs to be also added to mkdocs-base.yml
so that it gets 'built.
+If you wish to build a page but not have it in the menu system, you can give it a blank menu description e.g.
# Pages to render but exclude from navigation
+- "": developer/guide/templates/pull-request-template.md
+
Conversely, to ensure it is shown in the menu, find the right place in the navigation tree and then insert it with a short descriptor. e.g.
+ +You can easily upload images into the documentation sources and then add them to your document.
+Shift+Drag
the image into your markdown document.You can add a link to any text by doing the following:
+This is a normal link https://staging-geosight.unitst.org/, this is a link.
+The above in markdown:
+This is a normal link https://staging-geosight.unitst.org/, [this is a link](https://staging-geosight.unitst.org/).
+
You can easily preview the page you are working on by doing this:
+Ctl-Shift-V
to open a preview of the page you are currently working in.How to leave the interactive editor.
+In this section of the documentation, we explain how to work with the documentation. The content is organised as follows:
+This section provides an overview of how the documentation system works.
+Welcome to the instructions for those wishing to contribute to our documentation!
+Our documentation system is based on the popular mkdocs system. We encourage you to read the upstream documentation from mkdocs for the finer details of how mkdocs. In particular, read this page before you get to work. Mkdocs is not hard, but it may feel initially a little different if you are used to creating your documentation in word.
+We use mkdocs because it has some great and useful features. Most especially:
+In our documentation, we have organised the information using a specific nomenclature:
+For each of the main topic areas (user, admin, developer, devops, api user) we provide guides and manuals as is appropriate.
+The documentation is broadly organised in the following structure. This structure may change over time as sections are added / moved / removed:
+src
+├── about
+├── administrator
+│ ├── guide
+│ └── manual
+├── developer
+│ ├── documentation
+│ ├── guide
+│ └── manual
+├── devops
+│ ├── guide
+│ └── manual
+└── user
+ ├── api
+ ├── guide
+ ├── manual
+ └── quickstart
+
Please follow these conventions when writing your documentation:
+important-file.md
not Important File.md
or other deviations.# Page title
Note: The repo name in the images below is blurred out, you should work against the GeoRepo-OS repository when following these notes.
+To start adding to the documentation navigate to the home page of the repository.
+Once on the repository home page, 1️⃣ click on Fork +
+On the next page 1️⃣ Make sure your github account is selected as the owner and 2️⃣ make sure the "Copy the main
branch only" option is ticked as you will only need the main branch.
+
Once you have forked the repository, ensure that you are working in the main branch. +
+Once you are in your fork of the repository, click on .
on your keyboard. This will open a web editor where you can begin adding to, or editing, the documentation.
+
Once the editor loads, you will be greeted by 1️⃣ a preview of the project's README.txt. 2️⃣ Click on the docs
directory in the menu on the left, this will expand the directory. To confirm that you are working in the right branch 3️⃣️ it will say main
in the bottom left of the editor.
+
Once you have expanded the docs
directory, 1️⃣ click on the src
directory. All sub-directories within the src
directory contain the files that become the documentation. Each sub-directory contains an index.md
file that is required for the building of the documentation and static site. If you add a new sub-directory into any folder it must also contain a populated index.md
file.
+
Once you have chosen which section of documentation you would like to edit (e.g. user/guide/index.md), click on the file and it will open in the web editor. +
+Once you have the file open, you can start adding to the documentation using Markdown syntax. If you need to add images to your documentation, add them to the relative img
sub-directories following the naming conventions set out in the naming-convention.README
within the img
folders.
+
When you have completed making additions to (or editing) the documentation, 1️⃣ click on the source control tab then 2️⃣ click on the plus
symbol next to the changes you are finished with to stage them, 3️⃣️ add a commit message that is associated with the work you have done, and the 4️⃣ Click on Commit & Push
+
Once you have committed your changes, 1️⃣ Click on the burger menu and then 2️⃣ click on Go To Repository
+
Your fork of the repository will be opened in a new tab within your browser, navigate to that tab. Once there 1️⃣ ensure you are on the main
, you should see how many commits ahead of the upstream branch you are, then 2️⃣ click on Contribute
-> Open pull request
.
+
On the next screen, 1️⃣ give your pull request a meaningful title, 2️⃣ give additional details regarding changes made in the larger text box, then 3️⃣️ click on Create pull request
. Also ensure you are creating a pull request to the upstream main
branch from your main
branch.
+
Once your pull request is opened you need to wait for it to be merged before you can open a new one.
+Whenever you create a new file, you should add the standard header to the top of the file:
+---
+title: GeoRepo-OS Documentation
+summary: GeoRepo is a UNICEF's geospatial web-based data storage and administrative boundary harmonization platform.
+ - Tim Sutton
+ - Dimas Tri Ciputra
+ - Danang Tri Massandy
+date: 2023-08-03
+copyright: Copyright 2023, Unicef
+contact: georepo-no-reply@unicef.org
+license: This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
+#context_id: 1234
+---
+
The summary can be updated to include your name for documents you contribute to.
+The context_id is used to create a unique permalink to this document, and is optional. See further down in this document for more details.
+All pages need to be added to the 'Nav' section of the mkdocs-base.yml
file. This will ensure that it is available in the menus and that mkdocs renders without errors. For example, if you wish to add a new page to the User Guide area, in Nav you would add a line like this:
- "Navigating the map": users/guide/map-navigation.md
Sometimes you may not wish to have the new page displayed in the menu system (this can be useful when, for example, it is accessed via a link in another page. In these cases, leave the menu entry part blank e.g.
+- "": users/guide/map-navigation.md
Mkdocs will still generate the page but it will not be added to the menu.
+If you want to work with the documentation locally (i.e. directly on your PC), you need to follow this general process:
+pip install virtualenv
)cd docs
)python -m venv env
)source env/bin/activate
)pip install -r requirements.txt
)build-docs-html.sh
mkdocs serve
Note that mkdocs serve
will dynamically re-render the docs any time you make a change. The process above is illustrated in the diagram below:
We implement two hooks (plugins for mkdocs that are invoked during the docs rendering process).
+If you are a developer, you should be aware of the workflow for creating user and administrator documentation for each page you create.
+Every page should have a help link on it that leads to the appropriate manual page. The workflow for doing this is:
+./create-uuid.py
docs/src/user/manual/login.md
context_id: V4cVEFd2TmwYJVb5HvWRwa
https://siteurl/V4cVEFd2TmwYJVb5HvWRwa
Whenever the user visits the page using the UUID URL, they will be redirected to the correct page e.g. https://siteurl/login/
. This system protects us from file renaming and reorganising on the site, and ensures that the help link will always remain valid.
To generate PDFS, cd
into GEOREPO-OS/docs
and then run the build-docs-pdf
in a local terminal
To generate HTML, cd
into GEOREPO-OS/docs
and then run the build-docs-html
in a local terminal.
+You can then run mkdocs serve
to generate the static site on your local host, if there is a port conflict you can specify the port using the -a
flag e.g mkdocs serve -a 127.0.0.1:8001
.
In this section, we outline the system architecture using ER Diagrams, Software Component Diagrams etc. and key libraries / frameworks used in this project.
+The following is a list, with brief descriptions, of the key components used in creating this platform. Please refer to their individual documentation for in-depth technical information.
+Logo | +Name | +Notes | +
---|---|---|
+ | Django | +Django makes it easier to build better web apps more quickly and with less code. | +
+ | ReactJS | +React lets you build user interfaces out of individual pieces called components. Create your own React components like Thumbnail , LikeButton , and Video . Then combine them into entire screens, pages, and apps. |
+
+ | MUI | +Move faster with intuitive React UI tools. MUI offers a comprehensive suite of free UI tools to help you ship new features faster. Start with Material UI, our fully-loaded component library, or bring your own design system to our production-ready components. | +
+ | Docker | +Accelerate how you build, share, and run applications. Docker helps developers build, share, and run applications anywhere — without tedious environment configuration or management. | +
+ | Celery | +Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. | +
+ | Celery Beat | +This extension enables you to store the periodic task schedule in your database. The periodic tasks can be managed from the Django Admin interface, where you can create, edit and delete periodic tasks and how often they should run. | +
+ | Django Rest Framework | +Django REST framework is a powerful and flexible toolkit for building Web APIs. | +
+ | MapLibre | +Open-source mapping libraries for web and mobile app developers. | +
+ | + | deck.gl is a WebGL-powered framework for visual exploratory data analysis of large datasets. | +
+ | PostGIS | +PostGIS extends the capabilities of the PostgreSQL relational database by adding support storing, indexing and querying geographic data. | +
+ | PostgreSQL | +PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. | +
+ | Tegola | +An open source vector tile server written in Go, Tegola takes geospatial data and slices it into vector tiles that can be efficiently delivered to any client. | +
+ | GDAL | +GDAL is a translator library for raster and vector geospatial data formats that is released under an MIT style Open Source License by the Open Source Geospatial Foundation. As a library, it presents a single raster abstract data model and single vector abstract data model to the calling application for all supported formats. It also comes with a variety of useful command line utilities for data translation and processing. | +
The following diagram represents the docker containers, ports and volumes that are used to compose this platform.
+ + +The following diagram represents all of the database entities that are created by the Django ORM (Object Relational Mapper). Right click the image and open it in its own tab to see it at full resolution.
+ + +🪧 If you already have all of the above criteria met, you can move on to Prerequisites to start the process of getting your local development environment set up.
This section covers the process of building and running the application from your IDE.
+🚩 Make sure you have gone through the IDE Setup Process before following these notes.
+Press Ctrl -> P
1️⃣ and then >
and search for Rebuild
. Select Dev Containers: Rebuild and Reopen in Container
2️⃣. This will essentially mount your code tree inside a docker container and switch the development context of VSCode to be inside the container where all of the python etc. dependencies will be installed.
Once the task is running, a notification 1️⃣ will be shown in the bottom right of the VSCode window. Clicking in the notification will show you the setup progress 2️⃣. Note that this make take quite a while depending on the internet bandwidth you have and the CPU power of your machine.
+ +Open terminal within the dev container context by clicking the +
icon in the terminal pane 1️⃣. The new terminal 2️⃣ will show up in the list of running terminals 3️⃣
During this process you will be prompted for your user name (defaults to root), email address and a password (which you need to confirm). Complete these as needed.
+After completing the steps above, you should have the development server available on port 2000 of your local host:
+ + +The site will be rather bare bones since it will need to be configured in the admin area to set up the theme etc.
This section outlines the process of checking out the code for local development.
+🚩 Make sure you have gone through the Prerequisites Section before following these notes.
+Git Code check out [PROJECT_URL]
+ + +📒Which branch to use?: Note that we deploy our staging work from the develop
branch and our production environment from the main
branch. If you are planning on contributing improvements to the project, please submit them against the develop
branch.
🪧 Now that you have the code checked out, move on to the IDE Setup documentation.
This will clone the [PROJECT_NAME] repository to your machine +
+ +This will set up the [PROJECT_NAME] project on your machine
+cd [PROJECT_NAME]
+cd deployment
+cp docker-compose.override.template.yml docker-compose.override.yml
+cp .template.env .env
+cd ..
+make up
+
Wait until everything is done.
+After everything is done, open up a web browser and go to http://127.0.0.1/ and the dashboard will open:
+By Default, we can use the admin credential:
+ +To set up different environment, for example the Default credential, or the port of server, open deployment/.env. +You can check the description below for each of variable.
+COMPOSE_PROJECT_NAME=[PROJECT_NAME]
+NGINX_TAG=0.0.1 -> Change this for different nginx image
+DJANGO_TAG=0.0.1 -> Change this for different django image
+DJANGO_DEV_TAG=0.0.1 -> Change this for different django dev image
+
+# Environments
+DJANGO_SETTINGS_MODULE=core.settings.prod -> Change this to use different django config file
+ADMIN_USERNAME=admin -> Default admin username
+ADMIN_PASSWORD=admin -> Default admin password
+ADMIN_EMAIL=admin@example.com -> Default admin email
+INITIAL_FIXTURES=True
+HTTP_PORT=80 -> Change the port of nginx
+
+# Database Environment
+DATABASE_NAME=django -> Default database name
+DATABASE_USERNAME=docker -> Default database username
+DATABASE_PASSWORD=docker -> Default database password
+DATABASE_HOST=db -> Default database host. Change this if you use cloud database or any new docker container.
+RABBITMQ_HOST=rabbitmq
+
+# Onedrive
+PUID=1000
+PGID=1000
+
After you change the desired variable and do make up
. It will rerun the project with new environment.
This section describes the visual design approach for the user interface.
+ +The following documents provide guidance for the standard visual design we use when building the site:
+ + +Preview | +Name | +Notes | +
---|---|---|
+ | Colours | +Colour Palettes | +
+ | Buttons | +Designs for Buttons. | +
+ | Form Fields | +Form elements such as input boxes, select lists, radio buttons etc. | +
+ | Icons | +Standard iconography to be used in forms and views. | +
+ | Tables | +Design for tables and presentation of tabular data. | +
+ | Others | +Other user interface elements. | +
🪧 Once you have reviewed the design sheets, you can move on to our Roadmap.
+This section outlines the process for configuring your IDE for development.
+🚩 Make sure you have gone through the Cloning Section before following these notes.
+Open the project in VSCode (1️⃣, 2️⃣) by navigating the the place on your file system where you checked out the code in the pre-requisites step above (3️⃣).
+ +Accept the 'trust authors' prompt
+ +Copy the template.env
to .env
Edit the .env
file and change the
to
+ + +We are going to copy the docker overrides template to a local file that will not be under version control.
+ +Rename the file to docker-compose.override.yml
Initially you will not need to change anything in this file, though you may want to take a look through the various configurations provided here if you want to tweak your local setup.
+Now that you have your IDE set up, we can move on to building the project.
+📒 ⛔️ This section needs to be reviewed and organised into our docs framework.
+This section is for using pycharm.
+Requirements:
+Go to File -> Settings -> Project -> Project Interpreter. Then click on the cog -> add
+
Go to the ssh interpreter tab and fill in the form as below
+
Click next and fill in docker as the password
+
Click next and change the interpreter as below, then click finish.
+
After you click finish, it will show all of the packages like below.
+
In current page, click path mappings, click + button and put local path to where the project (django-project folder) and remote path is like below. and click oK.
+
Now the interpreter is done. When we restart the machine, we need to do make up
to run the project.
After the interpreter is done, we need configuration to run the project in development mode.
+Click "Add configuration" like in the cursor in the image below. (top-right)
+
There will be a popup, and click +, then click django server like below
+
+
It will show the form and fill like below.
+
Don't click the OK yet, but click Environment Variables and add environments like below (by clicking + button).
+
After that, click OK.
+Now we need to run the server by clicking go button in below image.
+
When we click the go button, pycharm will run a process until like image below.
+
Now it is done. We can access the development server in http://localhost:2000/
+This development mode is DEBUG mode, and also whenever we change the code, the site will also change in runtime.
+For more information how to set up on pycharm, please visit Using a Docker Compose-Based Python Interpreter in PyCharm
+⛔️📒 This content needs to be reviewed and moved to the readme.
+git clone https://github.com/project-name/repository
+cd project-name/deployment
+docker-compose up -d
+
The web will be available at http://127.0.0.1/
To stop containers:
+ +To stop and delete containers:
+ +git clone https://github.com/project-name/repository
+cd project-name/deployment
+cp .template.env .env
+cp docker-compose.override.template.yml docker-compose.override.yml
+
After that,
+Wait until it is done
+when there is sentence "webpack xxx compiled successfully in xxx ms".
+After that, don't close the terminal.
+If it is accidentally closed, do make frontend-dev
again
Next step: +- Open new terminal +- Do commands below +
+Wait until it is on.
+The web can be accessed using http://localhost:2000/
If the web is taking long time to load, restart project-name_dev container by make dev-reload
.
+The sequence should be make frontend-dev
, after that run or restart project-name_dev.
To stop dev:
+ +To reload container:
+In this section of the documentation, we aim to onboard developers onto the process of setting up a developer workstation, understanding the system architecture, contributing back to the project and so forth. Here is a brief overview of the content provided here:
+Follow our Commit message conventions.
+If it has related issues, add links to the issues(like #123
) in the description.
+Fill in the Pull Request template by check your case.
This is the homepage for all developer related documentation.
+title: Automatically Generated Python Documentation +summary: DO NOT EDIT THIS FILE MANUALLY : It is created during the mkdocs build process +date: 2023-08-03
+This section contains all documentation relevant to DevOps procedures.
+The devops content is divided into two sections:
+Strapline
++
A project (dashboard) is the most important feature of PROJECT_NAME. Projects +combine different elements (Reference datasets, indicators, and context layers) +and enable data visualization/analysis for all end users.
+Context layers are geospatial layers used to contextualise the information +presented in a project.
+Indicators layers derive from spreadsheets or other intelligence assets +harvested by the platform.
+Widgets are visual components such as charts generated by performing data +analysis on country/regional levels and the indicator data.
+We would love to collaborate with you! But first, please read our contributor +guidelines which describe how to report +issues, plan and contribute feature additions etc.
+Our community in this project is aligned with our Code of +Conduct - please be sure to read and abide by that +document in all interactions with out community.
+This project welcomes and encourages participation by everyone.
+No matter how you identify yourself or how others perceive you: we welcome you. +We welcome contributions from everyone as long as they interact constructively +with our community.
+While much of the work for our project is technical in nature, we value and +encourage contributions from those with expertise in other areas, and welcome +them into our community.
+GitHub releases page +Releases page
++ | Project Badges | ++ |
---|---|---|
+ | + | + |
+ | + | + |
Contributions to this project will be subject to our Contributor License Agreement
+This project is open source, published under the AGPL-3. +You can read our license to find out what rights this license bestows to users and contributors.
+ + +Strapline
"},{"location":"#introduction","title":"Introduction","text":""},{"location":"#key-concepts","title":"Key concepts","text":"
A project (dashboard) is the most important feature of PROJECT_NAME. Projects combine different elements (Reference datasets, indicators, and context layers) and enable data visualization/analysis for all end users.
Context layers are geospatial layers used to contextualise the information presented in a project.
Indicators layers derive from spreadsheets or other intelligence assets harvested by the platform.
Widgets are visual components such as charts generated by performing data analysis on country/regional levels and the indicator data.
"},{"location":"#disclaimer","title":"Disclaimer","text":"The software provided by this project is provided 'as is'. All information provided within the platform should be independently verified before using as the basis for action. The contributors and developers of this platform take no responsibility for any loss of revenue, life, physical harm or any other adverse outcome that may occur as a result of the use of this platform."},{"location":"#purpose","title":"Purpose","text":""},{"location":"#scope-of-project","title":"Scope of project","text":""},{"location":"#project-roadmap","title":"Project roadmap","text":"Project Roadmap
"},{"location":"#contributing","title":"Contributing","text":"We would love to collaborate with you! But first, please read our contributor guidelines which describe how to report issues, plan and contribute feature additions etc.
"},{"location":"#code-of-conduct","title":"Code of conduct","text":"Our community in this project is aligned with our Code of Conduct - please be sure to read and abide by that document in all interactions with out community.
"},{"location":"#diversity-statement","title":"Diversity statement","text":"This project welcomes and encourages participation by everyone.
No matter how you identify yourself or how others perceive you: we welcome you. We welcome contributions from everyone as long as they interact constructively with our community.
While much of the work for our project is technical in nature, we value and encourage contributions from those with expertise in other areas, and welcome them into our community.
"},{"location":"#project-partners","title":"Project partners","text":"Project Partner 1
"},{"location":"#releases","title":"Releases","text":"GitHub releases page Releases page
Project Badges"},{"location":"#project-chatroom","title":"Project chatroom","text":"Chatroom
"},{"location":"#contributor-license-agreement-cla","title":"Contributor License Agreement (CLA)","text":"Contributions to this project will be subject to our Contributor License Agreement
"},{"location":"#license","title":"License","text":"This project is open source, published under the AGPL-3. You can read our license to find out what rights this license bestows to users and contributors.
License
"},{"location":"about/","title":"GEA AFFORESTATION","text":""},{"location":"about/#about","title":"About","text":""},{"location":"about/#license","title":"License","text":"Published under AGPL-3. See the full license text.
"},{"location":"about/#contributors","title":"Contributors","text":"Contributor GitHub Handle Tim Sutton timlinux Jeremy Prior Jeremy-Prior Ketan Bamniya ketankartoza"},{"location":"about/#project-fundersbackers","title":"Project funders/backers","text":"This project was conceptualized and initially funded by FUNDER_1.
"},{"location":"about/#logos","title":"Logos","text":"Another fine project contributed to by: Kartoza.com
"},{"location":"about/code-of-conduct/","title":"GEA AFFORESTATION","text":""},{"location":"about/code-of-conduct/#contributor-covenant-code-of-conduct","title":"Contributor covenant code of conduct","text":""},{"location":"about/code-of-conduct/#our-pledge","title":"Our pledge","text":"In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
"},{"location":"about/code-of-conduct/#our-standards","title":"Our standards","text":"Examples of behaviour that contributes to creating a positive environment include:
Examples of unacceptable behaviour by participants include:
Project maintainers are responsible for clarifying the standards of acceptable behaviour and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behaviour.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
"},{"location":"about/code-of-conduct/#scope","title":"Scope","text":"This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
"},{"location":"about/code-of-conduct/#enforcement","title":"Enforcement","text":"Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported by contacting the project team. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
"},{"location":"about/code-of-conduct/#attribution","title":"Attribution","text":"This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
"},{"location":"about/contributing/","title":"GEA AFFORESTATION","text":""},{"location":"about/contributing/#contributing-to-project_name","title":"Contributing to [PROJECT_NAME]","text":"First off, thanks for taking the time to contribute! \ud83c\udf89 \ud83d\ude18 \u2728
The following is a set of guidelines for contributing to this project. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
"},{"location":"about/contributing/#reporting-bugs","title":"Reporting bugs","text":"Bugs are tracked as GitHub issues. Search the list and try reproduce on your local machine with a clean profile before you create an issue. When you create an issue, please provide the following information by filling in the template.
Explain the problem and include additional details to help maintainers reproduce the problem:
In case you want to suggest an enhancement, please follow this guideline to help maintainers and the community understand your suggestion. Before creating suggestions, please check issue list if there's already a request.
Create an issue and provide the following information:
Unsure where to begin contributing? You can start by looking through these document
, good first issue
and help wanted
issues:
pip install -r REQUIREMENTS-dev.txt
Run the pylance extension and make sure all the tests pass.
"},{"location":"about/contributing/#test","title":"Test","text":"Run TODO
and verify all the tests pass. If you are adding new commands or features, they must include tests. If you are changing functionality, update the tests if you need to.
Follow our commit message conventions.
"},{"location":"about/contributing/#yes-pull-request","title":"Yes! Pull request","text":"Make your pull request, then describe your changes.
"},{"location":"about/contributing/#title","title":"Title","text":"Follow other PR title format on below.
<Type>: Short Description (fix #111)\n <Type>: Short Description (fix #123, #111, #122)\n <Type>: Short Description (ref #111)\n
If it has related issues, add links to the issues(like #123
) in the description. Fill in the Pull Request Template by check your case.
This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behaviour to tim@kartoza.com.
This guide is based on atom contributing guide, CocoaPods and ESLint
"},{"location":"about/disclaimer/","title":"GeoSight-OS Documentation Home","text":""},{"location":"about/disclaimer/#disclaimer","title":"Disclaimer","text":"Disclaimer about project.
"},{"location":"about/license/","title":"License","text":""},{"location":"about/license/#gnu-affero-general-public-license","title":"GNU Affero General Public License","text":"Version 3, 19 November 2007 Copyright \u00a9 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
"},{"location":"about/license/#preamble","title":"Preamble","text":"The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
The precise terms and conditions for copying, distribution and modification follow.
"},{"location":"about/license/#terms-and-conditions","title":"TERMS AND CONDITIONS","text":""},{"location":"about/license/#0-definitions","title":"0. Definitions","text":"\u201cThis License\u201d refers to version 3 of the GNU Affero General Public License.
\u201cCopyright\u201d also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
\u201cThe Program\u201d refers to any copyrightable work licensed under this License. Each licensee is addressed as \u201cyou\u201d. \u201cLicensees\u201d and \u201crecipients\u201d may be individuals or organizations.
To \u201cmodify\u201d a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \u201cmodified version\u201d of the earlier work or a work \u201cbased on\u201d the earlier work.
A \u201ccovered work\u201d means either the unmodified Program or a work based on the Program.
To \u201cpropagate\u201d a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To \u201cconvey\u201d a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays \u201cAppropriate Legal Notices\u201d to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
"},{"location":"about/license/#1-source-code","title":"1. Source Code","text":"The \u201csource code\u201d for a work means the preferred form of the work for making modifications to it. \u201cObject code\u201d means any non-source form of a work.
A \u201cStandard Interface\u201d means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The \u201cSystem Libraries\u201d of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \u201cMajor Component\u201d, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The \u201cCorresponding Source\u201d for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
"},{"location":"about/license/#2-basic-permissions","title":"2. Basic Permissions","text":"All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
"},{"location":"about/license/#3-protecting-users-legal-rights-from-anti-circumvention-law","title":"3. Protecting Users' Legal Rights From Anti-Circumvention Law","text":"No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
"},{"location":"about/license/#4-conveying-verbatim-copies","title":"4. Conveying Verbatim Copies","text":"You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
"},{"location":"about/license/#5-conveying-modified-source-versions","title":"5. Conveying Modified Source Versions","text":"You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \u201caggregate\u201d if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
"},{"location":"about/license/#6-conveying-non-source-forms","title":"6. Conveying Non-Source Forms","text":"You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A \u201cUser Product\u201d is either (1) a \u201cconsumer product\u201d, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \u201cnormally used\u201d refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
\u201cInstallation Information\u201d for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
"},{"location":"about/license/#7-additional-terms","title":"7. Additional Terms","text":"\u201cAdditional permissions\u201d are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
All other non-permissive additional terms are considered \u201cfurther restrictions\u201d within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
"},{"location":"about/license/#8-termination","title":"8. Termination","text":"You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
"},{"location":"about/license/#9-acceptance-not-required-for-having-copies","title":"9. Acceptance Not Required for Having Copies","text":"You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
"},{"location":"about/license/#10-automatic-licensing-of-downstream-recipients","title":"10. Automatic Licensing of Downstream Recipients","text":"Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An \u201centity transaction\u201d is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
"},{"location":"about/license/#11-patents","title":"11. Patents","text":"A \u201ccontributor\u201d is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \u201ccontributor version\u201d.
A contributor's \u201cessential patent claims\u201d are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \u201ccontrol\u201d includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a \u201cpatent license\u201d is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \u201cgrant\u201d such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \u201cKnowingly relying\u201d means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is \u201cdiscriminatory\u201d if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
"},{"location":"about/license/#12-no-surrender-of-others-freedom","title":"12. No Surrender of Others' Freedom","text":"If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
"},{"location":"about/license/#13-remote-network-interaction-use-with-the-gnu-general-public-license","title":"13. Remote Network Interaction; Use with the GNU General Public License","text":"Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
"},{"location":"about/license/#14-revised-versions-of-this-license","title":"14. Revised Versions of this License","text":"The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License \u201cor any later version\u201d applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
"},{"location":"about/license/#15-disclaimer-of-warranty","title":"15. Disclaimer of Warranty","text":"THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \u201cAS IS\u201d WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
"},{"location":"about/license/#16-limitation-of-liability","title":"16. Limitation of Liability","text":"IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
"},{"location":"about/license/#17-interpretation-of-sections-15-and-16","title":"17. Interpretation of Sections 15 and 16","text":"If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
"},{"location":"about/license/#how-to-apply-these-terms-to-your-new-programs","title":"How to Apply These Terms to Your New Programs","text":"If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \u201ccopyright\u201d line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>\nCopyright (C) <year> <name of author>\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program. If not, see <http://www.gnu.org/licenses/>.\n
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a \u201cSource\u201d link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
You should also get your employer (if you work as a programmer) or school, if any, to sign a \u201ccopyright disclaimer\u201d for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
"},{"location":"about/running-instances/","title":"Examples of running instances","text":""},{"location":"administrator/","title":"GEA AFFORESTATION","text":""},{"location":"administrator/#for-administrators","title":"For administrators","text":"This is the homepage for all administrator related documentation.
The content is divided into two sections:
This is the homepage for all developer related documentation.
This is the homepage for all API related documentation.
In this section of the documentation, we explain how to work with the documentation. The content is organised as follows:
This section describes how the context help system works.
"},{"location":"developer/documentation/context-help/#overview","title":"Overview","text":"The context help system provides an integration between the web application and the documentation.
The following concepts are used:
There are three ways to trigger context help:
We manage the context help system from django admin. You need to be a staff user to do this and have been granted read/write/update permissions on the documentation center related tables. First open your user menu 1\ufe0f\u20e3 and then the Django Admin area 2\ufe0f\u20e3.
Next we can drill into the documentation center to see only the relevant admin activities 1\ufe0f\u20e3.
"},{"location":"developer/documentation/context-help/#site-preferences","title":"Site preferences","text":"Our first activity is to edit the site preferences 1\ufe0f\u20e3.
Here our goal is to set the documentation base url for the context help system 1\ufe0f\u20e3. Use the URL for your documentation project i.e. https://unicef-drp.github.io/GeoSight-OS
"},{"location":"developer/documentation/context-help/#managing-pages","title":"Managing Pages","text":"Next we need to create pages for each application end point where we want to include context sensitive help. First select pages 1\ufe0f\u20e3 from the documentation center menu:
Now you can edit an existing page 1\ufe0f\u20e3 or add a new one 2\ufe0f\u20e3:
The page properties you can set are going to determine how the context help panel appears in the application when triggering the help panel 1\ufe0f\u20e3:
Here is a detailed breakdown of the options:
1\ufe0f\u20e3 Name: A symbolic name for you to easily recognise what the context help is about
2\ufe0f\u20e3 Relative page url: This is the relative path to our application page (see underline in image above) e.g. /admin/importer/
3\ufe0f\u20e3 Url: This is where the documentation is, relative to the documentation base URL. For example if your docs base URL is at: https://unicef-drp.github.io/GeoSight-OS/ your help context document relative URL is /administrator/guide/. This will trigger the content panel link 3\ufe0f\u20e3 above to point to this page.
4\ufe0f\u20e3 Title: This will be displayed as 1\ufe0f\u20e3 above in the context help panel.
5\ufe0f\u20e3 Intro: This will be shown as lead-in text for the context help panel. See 2\ufe0f\u20e3 above.
On the page form you can also manage the blocks that appear in the context help.
"},{"location":"developer/documentation/context-help/#managing-blocks","title":"Managing blocks","text":"You can view and manage existing blocks from the documentation center 1\ufe0f\u20e3 or add a new block 2\ufe0f\u20e3. We first create a block then go back to the page to add it to the page.
We can also create a new block directly from within a page.
Let's create a new block within the context of an existing page (this is the more normal workflow).
Because we have created it within the page form, the block form appears as a popup window. We can deal with the form components as follows:
\u26a0\ufe0f As you can see, the block definition requires only minimal information - the URL and optionally the anchor on the page. Anything else you specify here will override information harvested from the page and likely make your documentation more difficult to maintain.
"},{"location":"developer/documentation/context-help/#page-blocks","title":"Page Blocks","text":"Generally we will not directly use the PageBlocks management area - use the Page manager to add and remove blocks from your page.
"},{"location":"developer/documentation/context-help/#conclusion-and-notes","title":"Conclusion and notes","text":"The system for context help has been designed in a generic way. That means that you can use any web site where you can reference content with page links and anchors.
\u26d4\ufe0f One word of caution. Do not use a web site as your documentation source if you do not control that site. The content from the help site is pulled directly into your application, which could put you in a compromising position if the content is not 'on message' for your organisation.
"},{"location":"developer/documentation/easy-workflow/","title":"GeoSight-OS Documentation Home","text":""},{"location":"developer/documentation/easy-workflow/#documentation-overview","title":"Documentation Overview","text":"This document describes the easiest workflow for editing documentation.
Requirements:
.
key on your keyboard.Commit and push
button.Any new page you create needs to be also added to mkdocs-base.yml
so that it gets 'built. If you wish to build a page but not have it in the menu system, you can give it a blank menu description e.g.
# Pages to render but exclude from navigation\n- \"\": developer/guide/templates/pull-request-template.md \n
Conversely, to ensure it is shown in the menu, find the right place in the navigation tree and then insert it with a short descriptor. e.g.
# Pages to render and include from navigation\n- \"My Menu Item\": developer/guide/my-page.md \n
"},{"location":"developer/documentation/easy-workflow/#adding-images","title":"Adding images","text":"You can easily upload images into the documentation sources and then add them to your document.
Shift+Drag
the image into your markdown document.You can add a link to any text by doing the following:
This is a normal link https://staging-geosight.unitst.org/, this is a link.
The above in markdown:
This is a normal link https://staging-geosight.unitst.org/, [this is a link](https://staging-geosight.unitst.org/).\n
"},{"location":"developer/documentation/easy-workflow/#page-previews","title":"Page previews","text":"You can easily preview the page you are working on by doing this:
Ctl-Shift-V
to open a preview of the page you are currently working in.How to leave the interactive editor.
This section provides an overview of how the documentation system works.
"},{"location":"developer/documentation/overview/#background","title":"Background","text":"Welcome to the instructions for those wishing to contribute to our documentation!
Our documentation system is based on the popular mkdocs system. We encourage you to read the upstream documentation from mkdocs for the finer details of how mkdocs. In particular, read this page before you get to work. Mkdocs is not hard, but it may feel initially a little different if you are used to creating your documentation in word.
We use mkdocs because it has some great and useful features. Most especially:
In our documentation, we have organised the information using a specific nomenclature:
For each of the main topic areas (user, admin, developer, devops, api user) we provide guides and manuals as is appropriate.
"},{"location":"developer/documentation/overview/#organisation","title":"Organisation","text":"The documentation is broadly organised in the following structure. This structure may change over time as sections are added / moved / removed:
src\n\u251c\u2500\u2500 about\n\u251c\u2500\u2500 administrator\n\u2502 \u251c\u2500\u2500 guide\n\u2502 \u2514\u2500\u2500 manual\n\u251c\u2500\u2500 developer\n\u2502 \u251c\u2500\u2500 documentation\n\u2502 \u251c\u2500\u2500 guide\n\u2502 \u2514\u2500\u2500 manual\n\u251c\u2500\u2500 devops\n\u2502 \u251c\u2500\u2500 guide\n\u2502 \u2514\u2500\u2500 manual\n\u2514\u2500\u2500 user\n \u251c\u2500\u2500 api\n \u251c\u2500\u2500 guide\n \u251c\u2500\u2500 manual\n \u2514\u2500\u2500 quickstart\n
"},{"location":"developer/documentation/overview/#file-naming-conventions","title":"File naming conventions","text":"Please follow these conventions when writing your documentation:
important-file.md
not Important File.md
or other deviations.# Page title
Note: The repo name in the images below is blurred out, you should work against the GeoRepo-OS repository when following these notes.
To start adding to the documentation navigate to the home page of the repository.
Once on the repository home page, 1\ufe0f\u20e3 click on Fork
On the next page 1\ufe0f\u20e3 Make sure your github account is selected as the owner and 2\ufe0f\u20e3 make sure the \"Copy the main
branch only\" option is ticked as you will only need the main branch.
Once you have forked the repository, ensure that you are working in the main branch.
Once you are in your fork of the repository, click on .
on your keyboard. This will open a web editor where you can begin adding to, or editing, the documentation.
Once the editor loads, you will be greeted by 1\ufe0f\u20e3 a preview of the project's README.txt. 2\ufe0f\u20e3 Click on the docs
directory in the menu on the left, this will expand the directory. To confirm that you are working in the right branch 3\ufe0f\u20e3\ufe0f it will say main
in the bottom left of the editor.
Once you have expanded the docs
directory, 1\ufe0f\u20e3 click on the src
directory. All sub-directories within the src
directory contain the files that become the documentation. Each sub-directory contains an index.md
file that is required for the building of the documentation and static site. If you add a new sub-directory into any folder it must also contain a populated index.md
file.
Once you have chosen which section of documentation you would like to edit (e.g. user/guide/index.md), click on the file and it will open in the web editor.
Once you have the file open, you can start adding to the documentation using Markdown syntax. If you need to add images to your documentation, add them to the relative img
sub-directories following the naming conventions set out in the naming-convention.README
within the img
folders.
When you have completed making additions to (or editing) the documentation, 1\ufe0f\u20e3 click on the source control tab then 2\ufe0f\u20e3 click on the plus
symbol next to the changes you are finished with to stage them, 3\ufe0f\u20e3\ufe0f add a commit message that is associated with the work you have done, and the 4\ufe0f\u20e3 Click on Commit & Push
Once you have committed your changes, 1\ufe0f\u20e3 Click on the burger menu and then 2\ufe0f\u20e3 click on Go To Repository
Your fork of the repository will be opened in a new tab within your browser, navigate to that tab. Once there 1\ufe0f\u20e3 ensure you are on the main
, you should see how many commits ahead of the upstream branch you are, then 2\ufe0f\u20e3 click on Contribute
-> Open pull request
.
On the next screen, 1\ufe0f\u20e3 give your pull request a meaningful title, 2\ufe0f\u20e3 give additional details regarding changes made in the larger text box, then 3\ufe0f\u20e3\ufe0f click on Create pull request
. Also ensure you are creating a pull request to the upstream main
branch from your main
branch.
Once your pull request is opened you need to wait for it to be merged before you can open a new one.
"},{"location":"developer/documentation/overview/#creating-new-files","title":"Creating new files","text":""},{"location":"developer/documentation/overview/#page-metadata","title":"Page metadata","text":"Whenever you create a new file, you should add the standard header to the top of the file:
---\ntitle: GeoRepo-OS Documentation \nsummary: GeoRepo is a UNICEF's geospatial web-based data storage and administrative boundary harmonization platform.\n - Tim Sutton\n - Dimas Tri Ciputra\n - Danang Tri Massandy\ndate: 2023-08-03\ncopyright: Copyright 2023, Unicef\ncontact: georepo-no-reply@unicef.org\nlicense: This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.\n#context_id: 1234\n---\n
The summary can be updated to include your name for documents you contribute to.
The context_id is used to create a unique permalink to this document, and is optional. See further down in this document for more details.
"},{"location":"developer/documentation/overview/#navigation","title":"Navigation","text":"All pages need to be added to the 'Nav' section of the mkdocs-base.yml
file. This will ensure that it is available in the menus and that mkdocs renders without errors. For example, if you wish to add a new page to the User Guide area, in Nav you would add a line like this:
- \"Navigating the map\": users/guide/map-navigation.md
Sometimes you may not wish to have the new page displayed in the menu system (this can be useful when, for example, it is accessed via a link in another page. In these cases, leave the menu entry part blank e.g.
- \"\": users/guide/map-navigation.md
Mkdocs will still generate the page but it will not be added to the menu.
"},{"location":"developer/documentation/overview/#technical-notes","title":"Technical notes","text":""},{"location":"developer/documentation/overview/#working-locally","title":"Working locally","text":"If you want to work with the documentation locally (i.e. directly on your PC), you need to follow this general process:
pip install virtualenv
)cd docs
)python -m venv env
)source env/bin/activate
)pip install -r requirements.txt
)build-docs-html.sh
mkdocs serve
Note that mkdocs serve
will dynamically re-render the docs any time you make a change. The process above is illustrated in the diagram below:
We implement two hooks (plugins for mkdocs that are invoked during the docs rendering process).
If you are a developer, you should be aware of the workflow for creating user and administrator documentation for each page you create.
Every page should have a help link on it that leads to the appropriate manual page. The workflow for doing this is:
./create-uuid.py
docs/src/user/manual/login.md
context_id: V4cVEFd2TmwYJVb5HvWRwa
https://siteurl/V4cVEFd2TmwYJVb5HvWRwa
Whenever the user visits the page using the UUID URL, they will be redirected to the correct page e.g. https://siteurl/login/
. This system protects us from file renaming and reorganising on the site, and ensures that the help link will always remain valid.
To generate PDFS, cd
into GEOREPO-OS/docs
and then run the build-docs-pdf
in a local terminal
To generate HTML, cd
into GEOREPO-OS/docs
and then run the build-docs-html
in a local terminal. You can then run mkdocs serve
to generate the static site on your local host, if there is a port conflict you can specify the port using the -a
flag e.g mkdocs serve -a 127.0.0.1:8001
.
In this section of the documentation, we aim to onboard developers onto the process of setting up a developer workstation, understanding the system architecture, contributing back to the project and so forth. Here is a brief overview of the content provided here:
In this section, we outline the system architecture using ER Diagrams, Software Component Diagrams etc. and key libraries / frameworks used in this project.
"},{"location":"developer/guide/architecture/#software-components-used","title":"Software components used","text":"The following is a list, with brief descriptions, of the key components used in creating this platform. Please refer to their individual documentation for in-depth technical information.
Logo Name Notes Django Django makes it easier to build better web apps more quickly and with less code. ReactJS React lets you build user interfaces out of individual pieces called components. Create your own React components likeThumbnail
, LikeButton
, and Video
. Then combine them into entire screens, pages, and apps. MUI Move faster with intuitive React UI tools. MUI offers a comprehensive suite of free UI tools to help you ship new features faster. Start with Material UI, our fully-loaded component library, or bring your own design system to our production-ready components. Docker Accelerate how you build, share, and run applications. Docker helps developers build, share, and run applications anywhere \u2014 without tedious environment configuration or management. Celery Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a system. It\u2019s a task queue with focus on real-time processing, while also supporting task scheduling. Celery Beat This extension enables you to store the periodic task schedule in your database. The periodic tasks can be managed from the Django Admin interface, where you can create, edit and delete periodic tasks and how often they should run. Django Rest Framework Django REST framework is a powerful and flexible toolkit for building Web APIs. MapLibre Open-source mapping libraries for web and mobile app developers. deck.gl is a WebGL-powered framework for visual exploratory data analysis of large datasets. PostGIS PostGIS extends the capabilities of the PostgreSQL relational database by adding support storing, indexing and querying geographic data. PostgreSQL PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. Tegola An open source vector tile server written in Go, Tegola takes geospatial data and slices it into vector tiles that can be efficiently delivered to any client. GDAL GDAL is a translator library for raster and vector geospatial data formats that is released under an MIT style Open Source License by the Open Source Geospatial Foundation. As a library, it presents a single raster abstract data model and single vector abstract data model to the calling application for all supported formats. It also comes with a variety of useful command line utilities for data translation and processing."},{"location":"developer/guide/architecture/#docker-components","title":"Docker components","text":"The following diagram represents the docker containers, ports and volumes that are used to compose this platform.
"},{"location":"developer/guide/architecture/#er-diagram","title":"ER diagram","text":"The following diagram represents all of the database entities that are created by the Django ORM (Object Relational Mapper). Right click the image and open it in its own tab to see it at full resolution.
\ud83e\udea7 If you already have all of the above criteria met, you can move on to Prerequisites to start the process of getting your local development environment set up.
"},{"location":"developer/guide/building/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/building/#building-the-dev-environment","title":"Building the dev environment","text":"This section covers the process of building and running the application from your IDE.
\ud83d\udea9 Make sure you have gone through the IDE Setup Process before following these notes.
Press Ctrl -> P
1\ufe0f\u20e3 and then >
and search for Rebuild
. Select Dev Containers: Rebuild and Reopen in Container
2\ufe0f\u20e3. This will essentially mount your code tree inside a docker container and switch the development context of VSCode to be inside the container where all of the python etc. dependencies will be installed.
Once the task is running, a notification 1\ufe0f\u20e3 will be shown in the bottom right of the VSCode window. Clicking in the notification will show you the setup progress 2\ufe0f\u20e3. Note that this make take quite a while depending on the internet bandwidth you have and the CPU power of your machine.
"},{"location":"developer/guide/building/#open-a-dev-container-terminal","title":"Open a dev container terminal","text":"Open terminal within the dev container context by clicking the +
icon in the terminal pane 1\ufe0f\u20e3. The new terminal 2\ufe0f\u20e3 will show up in the list of running terminals 3\ufe0f\u20e3
make frontend-dev\n
"},{"location":"developer/guide/building/#run-django-migration","title":"Run django migration","text":"cd /home/web/project/django_project\npython manage.py migrate\n
"},{"location":"developer/guide/building/#create-super-user","title":"Create super user","text":"cd /home/web/project/django_project\npython manage.py createsuperuser\n
During this process you will be prompted for your user name (defaults to root), email address and a password (which you need to confirm). Complete these as needed.
"},{"location":"developer/guide/building/#viewing-your-test-instance","title":"Viewing your test instance","text":"After completing the steps above, you should have the development server available on port 2000 of your local host:
http://localhost:2000\n
The site will be rather bare bones since it will need to be configured in the admin area to set up the theme etc.
"},{"location":"developer/guide/cloning/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/cloning/#checking-out-the-code","title":"Checking out the code","text":"This section outlines the process of checking out the code for local development.
\ud83d\udea9 Make sure you have gone through the Prerequisites Section before following these notes.
Git Code check out [PROJECT_URL]
git clone https://github.com/project-name/repository.git\n
\ud83d\udcd2Which branch to use?: Note that we deploy our staging work from the develop
branch and our production environment from the main
branch. If you are planning on contributing improvements to the project, please submit them against the develop
branch.
\ud83e\udea7 Now that you have the code checked out, move on to the IDE Setup documentation.
"},{"location":"developer/guide/configuration/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/configuration/#project-setup","title":"Project setup","text":""},{"location":"developer/guide/configuration/#clone-project_name-repository","title":"Clone [PROJECT_NAME] repository","text":"This will clone the [PROJECT_NAME] repository to your machine
git clone https://github.com/project/repository.git\n
"},{"location":"developer/guide/configuration/#set-up-the-project","title":"Set up the project","text":"This will set up the [PROJECT_NAME] project on your machine
cd [PROJECT_NAME]\ncd deployment\ncp docker-compose.override.template.yml docker-compose.override.yml\ncp .template.env .env\ncd ..\nmake up\n
Wait until everything is done.
After everything is done, open up a web browser and go to http://127.0.0.1/ and the dashboard will open:
By Default, we can use the admin credential:
username : admin\npassword : admin\n
"},{"location":"developer/guide/configuration/#set-up-different-environment","title":"Set up different environment","text":"To set up different environment, for example the Default credential, or the port of server, open deployment/.env. You can check the description below for each of variable.
COMPOSE_PROJECT_NAME=[PROJECT_NAME]\nNGINX_TAG=0.0.1 -> Change this for different nginx image\nDJANGO_TAG=0.0.1 -> Change this for different django image\nDJANGO_DEV_TAG=0.0.1 -> Change this for different django dev image\n\n# Environments\nDJANGO_SETTINGS_MODULE=core.settings.prod -> Change this to use different django config file\nADMIN_USERNAME=admin -> Default admin username \nADMIN_PASSWORD=admin -> Default admin password\nADMIN_EMAIL=admin@example.com -> Default admin email\nINITIAL_FIXTURES=True\nHTTP_PORT=80 -> Change the port of nginx\n\n# Database Environment\nDATABASE_NAME=django -> Default database name\nDATABASE_USERNAME=docker -> Default database username\nDATABASE_PASSWORD=docker -> Default database password\nDATABASE_HOST=db -> Default database host. Change this if you use cloud database or any new docker container.\nRABBITMQ_HOST=rabbitmq\n\n# Onedrive\nPUID=1000\nPGID=1000\n
After you change the desired variable and do make up
. It will rerun the project with new environment.
This section describes the visual design approach for the user interface.
"},{"location":"developer/guide/design/#design-sheet","title":"Design sheet","text":"The following documents provide guidance for the standard visual design we use when building the site:
Preview Name Notes Colours Colour Palettes Buttons Designs for Buttons. Form Fields Form elements such as input boxes, select lists, radio buttons etc. Icons Standard iconography to be used in forms and views. Tables Design for tables and presentation of tabular data. Others Other user interface elements.\ud83e\udea7 Once you have reviewed the design sheets, you can move on to our Roadmap.
"},{"location":"developer/guide/design/#wire-frame-model","title":"Wire-frame model","text":"Wire-frame Model
"},{"location":"developer/guide/ide-setup/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/ide-setup/#setting-up-your-ide","title":"Setting up your IDE","text":"This section outlines the process for configuring your IDE for development.
\ud83d\udea9 Make sure you have gone through the Cloning Section before following these notes.
"},{"location":"developer/guide/ide-setup/#vs-code-setup","title":"VS Code setup","text":"Open the project in VSCode (1\ufe0f\u20e3, 2\ufe0f\u20e3) by navigating the the place on your file system where you checked out the code in the pre-requisites step above (3\ufe0f\u20e3).
Accept the 'trust authors' prompt
"},{"location":"developer/guide/ide-setup/#copying-the-env","title":"Copying the .env","text":"Copy the template.env
to .env
Edit the .env
file and change the
DJANGO_SETTINGS_MODULE=core.settings.prod\n
to
DJANGO_SETTINGS_MODULE=core.settings.dev\n
"},{"location":"developer/guide/ide-setup/#override-docker-configurations","title":"Override Docker configurations","text":"We are going to copy the docker overrides template to a local file that will not be under version control.
Rename the file to docker-compose.override.yml
Initially you will not need to change anything in this file, though you may want to take a look through the various configurations provided here if you want to tweak your local setup.
Now that you have your IDE set up, we can move on to building the project.
"},{"location":"developer/guide/ide-setup/#using-pycharm","title":"Using PyCharm","text":"\ud83d\udcd2 \u26d4\ufe0f This section needs to be reviewed and organised into our docs framework.
This section is for using pycharm.
Requirements:
Go to File -> Settings -> Project -> Project Interpreter. Then click on the cog -> add
Go to the ssh interpreter tab and fill in the form as below
Click next and fill in docker as the password
Click next and change the interpreter as below, then click finish.
After you click finish, it will show all of the packages like below.
In current page, click path mappings, click + button and put local path to where the project (django-project folder) and remote path is like below. and click oK.
Now the interpreter is done. When we restart the machine, we need to do make up
to run the project.
After the interpreter is done, we need configuration to run the project in development mode.
Click \"Add configuration\" like in the cursor in the image below. (top-right)
There will be a popup, and click +, then click django server like below
It will show the form and fill like below.
Don't click the OK yet, but click Environment Variables and add environments like below (by clicking + button).
After that, click OK.
Now we need to run the server by clicking go button in below image.
When we click the go button, pycharm will run a process until like image below.
Now it is done. We can access the development server in http://localhost:2000/
This development mode is DEBUG mode, and also whenever we change the code, the site will also change in runtime.
For more information how to set up on pycharm, please visit Using a Docker Compose-Based Python Interpreter in PyCharm
"},{"location":"developer/guide/ide-setup/#quick-setup-guide","title":"Quick setup guide","text":"\u26d4\ufe0f\ud83d\udcd2 This content needs to be reviewed and moved to the readme.
"},{"location":"developer/guide/ide-setup/#production","title":"Production","text":"git clone https://github.com/project-name/repository\ncd project-name/deployment\ndocker-compose up -d\n
The web will be available at http://127.0.0.1/
To stop containers:
docker-compose kill\n
To stop and delete containers:
docker-compose down\n
"},{"location":"developer/guide/ide-setup/#development","title":"Development","text":"git clone https://github.com/project-name/repository\ncd project-name/deployment\ncp .template.env .env\ncp docker-compose.override.template.yml docker-compose.override.yml\n
After that,
make frontend-dev\n
Wait until it is done when there is sentence \"webpack xxx compiled successfully in xxx ms\". After that, don't close the terminal. If it is accidentally closed, do make frontend-dev
again
Next step: - Open new terminal - Do commands below
make up\nmake dev\n
Wait until it is on.
The web can be accessed using http://localhost:2000/
If the web is taking long time to load, restart project-name_dev container by make dev-reload
. The sequence should be make frontend-dev
, after that run or restart project-name_dev.
To stop dev:
make dev-kill\n
To reload container:
make dev-reload\n
"},{"location":"developer/guide/prerequisites/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/prerequisites/#project-prerequisites","title":"Project prerequisites","text":""},{"location":"developer/guide/roadmap/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/roadmap/#project-roadmap","title":"Project roadmap","text":""},{"location":"developer/guide/workflows/","title":"GEA AFFORESTATION","text":""},{"location":"developer/guide/workflows/#developer-workflows","title":"Developer workflows","text":""},{"location":"developer/guide/workflows/#adding-a-feature","title":"Adding a feature","text":"Follow our Commit message conventions.
"},{"location":"developer/guide/workflows/#pull-request-template","title":"Pull request template","text":"If it has related issues, add links to the issues(like #123
) in the description. Fill in the Pull Request template by check your case.
title: Automatically Generated Python Documentation summary: DO NOT EDIT THIS FILE MANUALLY : It is created during the mkdocs build process date: 2023-08-03
"},{"location":"developer/manual/#python-reference-manual","title":"Python Reference Manual","text":""},{"location":"devops/","title":"GEA AFFORESTATION","text":""},{"location":"devops/#devops-documentation","title":"DevOps documentation","text":"This section contains all documentation relevant to DevOps procedures.
The devops content is divided into two sections:
This is the homepage for all user-related documentation.
The user content is divided into three sections:
This section of the documentation describes every page in the application and what the various components of that page do. The manual is intended to function as a reference for the application. For narrative / workflow based tutorials, you may prefer to work through our user guide.
"},{"location":"user/quickstart/","title":"GEA AFFORESTATION","text":""},{"location":"user/quickstart/#quickstart","title":"Quickstart","text":""},{"location":"user/quickstart/#installing-the-product","title":"Installing the product","text":""},{"location":"user/quickstart/#getting-started","title":"Getting started","text":""},{"location":"user/quickstart/#releases","title":"Releases","text":"GitHub releases page Releases page
"}]} \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..aa9df81 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,193 @@ + +This is the homepage for all user-related documentation.
+The user content is divided into three sections:
+This section of the documentation describes every page in the application and +what the various components of that page do. The manual is intended to function +as a reference for the application. For narrative / workflow based tutorials, +you may prefer to work through our user guide.