-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "RERA Act", | ||
"image": "squidfunk/mkdocs-material:latest", | ||
"postCreateCommand": "pip install --upgrade pip && pip3 install --user -r requirements.txt && mkdocs new ." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: deploy-website | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' # Watch for changes in the docs folder | ||
- 'mkdocs.yml' # Watch for changes in the mkdocs.yml file | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
sparse-checkout: | | ||
docs | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v2.1.8 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev | ||
- run: sudo apt-get install pngquant | ||
- run: pip install --upgrade pip && pip install --user -r requirements.txt | ||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pages: | ||
stage: deploy | ||
image: python:latest | ||
cache: | ||
key: "$CI_COMMIT_REF_NAME" | ||
paths: | ||
- /var/cache/apt/archives | ||
- /root/.cache/pip | ||
- /usr/local/lib/python3.*/site-packages | ||
before_script: | ||
- apt-get update -y | ||
- apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev | ||
- pip install --upgrade pip | ||
- pip install --user -r requirements.txt | ||
- export PATH="$PATH:$(python -m site --user-base)/bin" | ||
script: | ||
- mkdocs build --site-dir public | ||
artifacts: | ||
paths: | ||
- public | ||
rules: | ||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' | ||
changes: | ||
- docs/* | ||
- mkdocs.yml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
hide: | ||
- toc | ||
- navigation | ||
description: Introduction | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[data-md-color-scheme="default"] { | ||
--md-primary-fg-color: #06038D; | ||
--md-typeset-a-color: #000000; | ||
} | ||
|
||
[data-md-color-scheme="slate"] { | ||
--md-primary-fg-color: #06038D; | ||
--md-typeset-a-color: #FFFFFF; | ||
} | ||
|
||
div.md-content { | ||
text-align: justify; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
site_name: Real Estate (Regulation and Development) Act | ||
site_url: https://www.comsect.in/rera-act/ | ||
site_author: Comsect® | ||
site_description: The Real Estate (Regulation and Development) Act, 2016 | ||
theme: | ||
name: material | ||
language: en | ||
logo: assets/ashoka-chakra-logo.png | ||
favicon: assets/comsect-logo.png | ||
palette: | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
primary: light blue | ||
accent: light blue | ||
toggle: | ||
icon: material/weather-night | ||
name: Switch to dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
primary: light blue | ||
accent: light blue | ||
toggle: | ||
icon: material/weather-sunny | ||
name: Switch to light mode | ||
features: | ||
- navigation.footer | ||
- navigation.tabs | ||
- navigation.sections | ||
- content.tooltips | ||
- content.code.copy | ||
|
||
extra_css: | ||
- stylesheets/extra.css | ||
|
||
markdown_extensions: | ||
- pymdownx.caret | ||
- pymdownx.mark | ||
- pymdownx.tilde | ||
- footnotes | ||
- admonition | ||
- pymdownx.details | ||
- pymdownx.superfences | ||
- abbr | ||
- attr_list | ||
- md_in_html | ||
- def_list | ||
- pymdownx.snippets: | ||
auto_append: | ||
- includes/abbreviations.md | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg | ||
- pymdownx.tasklist: | ||
custom_checkbox: true | ||
clickable_checkbox: true | ||
|
||
extra: | ||
generator: false | ||
social: | ||
- icon: fontawesome/brands/linkedin | ||
link: https://linkedin.com/company/comsect | ||
name: Comsect™ on LinkedIn | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/comsect | ||
name: Comsect™ on GitHub | ||
- icon: fontawesome/brands/youtube | ||
link: https://youtube.com/@comsect | ||
name: Comsect™ on YouTube | ||
|
||
plugins: | ||
- search: | ||
lang: en | ||
- minify: | ||
minify_html: true | ||
- social: | ||
cards_layout_options: | ||
background_color: "#06038D" | ||
- glightbox | ||
|
||
nav: | ||
- Introduction: index.md | ||
|
||
copyright: Copyright © 2024 <a href="https://www.github.com/comsect">Comsect<sup>®</sup></a>. All rights reserved. Read the <a href="/license" target="_blank">License</a>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mkdocs-material | ||
pillow | ||
cairosvg | ||
urllib3 | ||
mkdocs-minify-plugin | ||
mkdocs-glightbox |