bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

commit 9fbbd3dceccf59cba9b5f99d2de12cb8e26d31e8
parent b192e47de40b3a61fbc3c849447bdf9b48d98230
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Tue, 28 Jul 2026 17:31:29 +0530

Merge pull request #15 from notamitgamer/edit-20260728-173004

updated the structure a bit
Diffstat:
Mdocs/.vitepress/theme/components/Banner.vue | 5++---
Mdocs/.vitepress/theme/style.css | 3+--
Mdocs/semester_2/index.md | 6++----
Mmd.py | 37+++++++++++++++----------------------
4 files changed, 20 insertions(+), 31 deletions(-)

diff --git a/docs/.vitepress/theme/components/Banner.vue b/docs/.vitepress/theme/components/Banner.vue @@ -33,7 +33,7 @@ const acceptTerms = () => { <template v-if="isFirstVisit"> This is an open-source, <a href="https://github.com/notamitgamer/bsc/blob/main/LICENSE" class="banner-link"><strong>MIT-licensed</strong></a> code index — please use it as a study reference, not a copy-paste source. - By browsing, you agree to our <a href="/terms" class="banner-link">Terms</a>. + By browsing, you agree to <a href="/terms" class="banner-link">Terms</a>. </template> <template v-else> Updated with new materials — see the <a href="/changelog" class="banner-link">Changelog</a>. @@ -139,4 +139,4 @@ const acceptTerms = () => { transform: translateY(100%); opacity: 0; } -</style>- \ No newline at end of file +</style> diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css @@ -388,4 +388,4 @@ .DocSearch-Button:focus-visible { outline: none !important; box-shadow: none !important; -}- \ No newline at end of file +} diff --git a/docs/semester_2/index.md b/docs/semester_2/index.md @@ -27,14 +27,12 @@ This folder contains all my current academic work, including practicals, assignm To keep the repository organized, the C++ and Python programs are divided into specific categories based on their origin and purpose. ### C++ Programming (Data Structures) -* **`/assignments`**: Assignmets cpp, odt and pdf files. +* **`/assignments/`**: Assignmets cpp, odt and pdf files. * **`/practice/`**: General, day-to-day CPP programming practice files. * **`/tuition/`**: Programs and problem-solving exercises completed during tuition classes. * **`/algorithms/`**: Some algorithms. ### Python Programming (SEC) -* **`/python/`**: Contains all SEC coursework, split into: - * `/code/`: Python script files (`.py`) for practicals. - * `/material_pdf/`: Study materials and reference documents. +* **`/python/`**: Python script files (`.py`) for practicals. ## How to Find a Specific Code 1. **Identify the Category:** Determine if the code was an assignment, a tuition exercise, or practice problem, and navigate to the corresponding folder above. 2. **Naming Convention:** Most files are sequentially numbered for easy tracking. diff --git a/md.py b/md.py @@ -303,25 +303,6 @@ def build_md(filename, lang_label, fence_lang, author, date, repo, license_str, "" ] - has_meta = any([author, date, license_str]) - if has_meta: - body.extend([ - "### Metadata", - "" - ]) - - if author: - body.append(f"- **Author** — {format_author(author)}") - if date: - body.append(f"- **Last updated** — {esc_html(date)}") - if license_str: - body.append( - f"- **License** — [{esc_html(license_str)}]" - f"(https://github.com/notamitgamer/bsc/blob/main/LICENSE)" - ) - - body.append("") - if problem_statement: body += [ "", @@ -379,7 +360,20 @@ def build_md(filename, lang_label, fence_lang, author, date, repo, license_str, ":::", "", ] - + + meta_parts = [] + if author: + meta_parts.append(format_author(author)) + if date: + meta_parts.append(esc_html(date)) + + if meta_parts: + body += [ + f'<div style="font-size:0.8rem;color:var(--vp-c-text-3);margin-bottom:16px;">' + f'{" • ".join(meta_parts)}</div>', + "", + ] + return '\n'.join(fm_lines + body) def _get_md_title(md_path: str) -> str: @@ -552,4 +546,4 @@ def main(): print("Folder indexes created.") if __name__ == "__main__": - main()- \ No newline at end of file + main()
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror