Coder Social home page Coder Social logo

servicetomankind / opencodelaw Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 5.0 955 KB

OpenCodeLaw is a project that allows you to dynamically generate a constitution page based on YAML specifications. It provides a user-friendly interface for displaying constitution articles and sections.

Home Page: https://constitution.stmorg.in

License: Other

HTML 3.30% JavaScript 62.17% CSS 17.18% SCSS 17.34%
constitution constitutional-law law yaml hacktoberfest hacktoberfest-accepted stm

opencodelaw's Introduction

OpenCodeLaw

OpenLawCode Banner

OpenCodeLaw is a project that allows you to dynamically generate a constitution page based on YAML specifications. It provides a user-friendly interface for displaying constitution articles and sections.

Getting Started

To use OpenCodeLaw, follow these steps:

  1. Create an HTML file (e.g., index.html) and add the following content:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>OpenCodeLaw Ui</title>
    <!-- Include theme's CSS -->
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/ServiceToMankind/[email protected]/css/style.css"
    />
  </head>
  <body>
    <!-- Replace 'YOUR_SPEC_URL' with your own YAML specification URL -->
    <opencodelaw spec-url="YOUR_SPEC_URL"></opencodelaw>

    <!-- Include required scripts -->
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.0.0/js-yaml.min.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/ServiceToMankind/[email protected]/js/opencodelaw.js"></script>
  </body>
</html>
  1. Replace 'YOUR_SPEC_URL' in the spec-url attribute with the URL of your YAML specification file.

  2. Open the HTML file in a web browser to see the dynamically generated constitution page.

Usage

  1. Update the spec-url attribute in the HTML file with the URL of your own YAML specification.

  2. The generated page will display the constitution sections and articles based on the provided YAML data.

OpenCodeLaw YAML Schema Explanation

The OpenCodeLaw YAML schema defines the structure of the constitution for the organization. This schema provides a clear and organized way to outline various sections, articles, and amendments of the constitution. Here's a breakdown of each key in the schema.

Contributing

Contributions to the OpenCodeLaw project are welcome! Feel free to fork the repository, make changes, and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

opencodelaw's People

Contributors

deepak4566 avatar kiranpranay avatar rajatuiwebdev avatar shiba-tatsuya avatar sumitverma-coder avatar vanshsh avatar

Stargazers

 avatar  avatar  avatar  avatar

opencodelaw's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.