Skip to content

Commit

Permalink
V2.0 (#40)
Browse files Browse the repository at this point in the history
* draft: new UI test

* refactor: UI modifications

* fix: wrong use of h1 tag

* refactor: add new section

* docs: add guidelines

* feat: add company info table

* feat: add db related blogs
  • Loading branch information
TamimEhsan authored Jan 11, 2025
1 parent 2f008ad commit f32ff1f
Show file tree
Hide file tree
Showing 37 changed files with 1,287 additions and 1,322 deletions.
85 changes: 69 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Use pull requests to contribute to the project.

### Adding a New Company
If the company eg `Generic Company Ltd` is not in the list, then create a new file for the company in `/docs/` folder eg `generic.md`, then add that in the table of contents in `/docs/.vitepress/config.mjs`. In the json file, find the items in themeConfig.sidebar.items. And add your new entry here. If you feel like this is too much hassle, then just mention it in the pull request. I will add it later.
If the company eg `Generic Company Ltd` is not in the list, then create a new file for the company in `/docs/` folder eg `generic.md`, then add that in the table of contents in `/docs/.vitepress/sitemap/companies.mjs`. In the json file, find the items as json array and add your new entry here. If you feel like this is too much hassle, then just mention it in the pull request. I will add it later.

```json
items: [
Expand Down Expand Up @@ -32,35 +32,88 @@ The interview questions and answers (optional) following the given format
### Contributing to an Existing Company
Else list the interview question under that company section. If the question is already added in other company section but not under the company you are currently wanting to contribute then too you can add the question.

### Question Answer Format
### Question Format
Stick to the following format to add a question under a company:
```html
<details>
<summary>
[Question]
</summary>
<hr>
[Answer]
</details>
<article>

Your markdown supported question here
</article>
```
Example:
```html
<article>

What is `1+1`?
</article>
```
<details>
<summary>
What is 1+1?
</summary>
<hr>
1+1 equals 3

### [OPTIONAL] Sections
If you want to add collapsible sections with your question. You can use collapsible sections to reduce the size of the visible fields. Some example of these can be

- Show Description
- Show Hint
- Show Answer

You can use the following template to add an entry with collapsible section.

**Template:**
```html
<article>

Your markdown supported question here.

<details><summary>Your visible collapsible section title</summary>

Hidden details of your collapsible section
</details>
</article>
```

**Example:**
```html
<article>

What is `1+1`?

<details><summary>Show Hint</summary>

Use calculator
</details>

<details><summary>Show Answer</summary>

`1+1` equals `2`
</details>
</article>
```
**Rendered:**

<article>

What is `1+1`?
<details><summary>Show Hint</summary>

Use calculator
</details>

<details><summary>Show Answer</summary>

`1+1` equals `2`
</details>
</article>

## Adding Images
If you want to add any images with the question or answer, then at first add the image in `docs/resource`. Then reference that file from your content. If you are in `docs/comapanies/generic_company.md`, then you will use `../resource/image.jpg` as the link. If you are in `docs/comapanies/generic_company/generic_role.md`, then you will use `../../resource/image.jpg` as the link.

## Self Citation
If you want to add show yourself as a contributor in the page then add a new section if there isn't one already and add your name under it.

Example

```
## Contributors
- [Mohammad Tamimul Ehsan](https://www.linkedin.com/in/tamimehsan/)
- [Mohammad Tamimul Ehsan](https://www.linkedin.com/in/tamimehsan/): Tamim is a software engineer specialized in backend and software architecture.
```

## Before submitting the pull request
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

Visit the site [Interview BD](https://tamimehsan.github.io/interview-questions-bangladesh) to start taking preparation for your next interview!

- 10+ companies
- 150+ questions
- 20+ companies
- 250+ questions
- Solutions to questions
- Company specific guidelines
- Specialized knowledge on various topics
Expand All @@ -39,7 +39,13 @@ npm run docs:dev
```
The site should be available in [http://localhost:5173/interview-questions-bangladesh/](http://localhost:5173/interview-questions-bangladesh/)

## Achknowledgement
This project is made possible by the effort of community. Majority of the contents are contributed by individual contributors.

Some of the info are taken from the respective company website and from [MBSTUPC/tech-companies-in-bangladesh
](https://github.com/MBSTUPC/tech-companies-in-bangladesh).

## Disclaimer
The questions are collected from volunteers. The owner is not responsible for anykind of terms and conditions imposed from the companies. The owner will gladly remove any content if that violates any agreement.
The questions are collected from volunteers. The maintainer is not responsible for anykind of terms and conditions imposed from the companies. The maintainer will gladly remove any content if that violates any agreement.

The owner tries to check every questions and answer contributed from others. Sometimes, the questions or answers might not be correct. The owner is not responsible for any issues for that.
The maintainer tries to check every questions and answer contributed from others. Sometimes, the questions or answers might not be correct. The maintainer is not responsible for any issues for that.
51 changes: 10 additions & 41 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vitepress";

import companiesMap from "./sitemap/companies.mjs";
import notesMap from "./sitemap/notes.mjs";
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Interview BD",
Expand All @@ -12,48 +13,16 @@ export default defineConfig({
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{ text: "Questions", link: "/general" },
{ text: 'Home', link: '/' },
{ text: 'Companies', link: '/companies/general', activeMatch:'/companies/' },
{ text: 'Notes', link: '/notes/general', activeMatch:'/notes/' }

],

sidebar: [
{
items: [
{ text: "General Guidelines", link: "/general" },
{ text: 'Before Application', link: "/beforeapplying" },
{ text: "Chaldal", link: "/chaldal" },
{ text: "Bevy Commerce", link: "/bevycommerce" },
{ text: 'Brain Station 23 <span class="VPBadge warning">updated</span>', link: "/bs23" },
{ text: "DSI", link: "/dsi" },
{ text: "Exabyting", link: "/exabyting" },
{ text: 'Fringecore <span class="VPBadge tip">new</span>', link: "/fringecore" },
{ text: 'Inverse AI <span class="VPBadge warning">updated</span>', link: "/inverseai" },
{ text: "IQVIA", link: "/iqvia" },
{ text: "Priyo", link: "/priyo" },
{ text: "Kite Games Studio", link: "/kite" },
{ text: "Orbitax", link: "/orbitax" },
{ text: "Optimizely", link: "/optimizely" },
{ text: "Relisource", link: "/relisource" },
{ text: "RoBenDevs", link: "/robendevs" },
{ text: "Spectrum", link: "/spectrum" },
{ text: "SRBD", link: "/srbd" },
{ text: "Synesis IT", link: "/synesis" },
{
text: "Therap BD",
link: "/therap/",
items: [
{ text: 'Software Engineer <span class="VPBadge warning">updated</span>', link: "/therap/swe.md" },
{ text: "Database Engineer", link: "/therap/dbe.md" },
],
},
{ text: "WSD", link: "/wsd" },
{ text: "WellDev", link: "/welldev" },
],
},
{
items: [{ text: "CSE competitions", link: "/competitions" }],
},
],
sidebar: {
'/companies/' : {base:'/companies/', items: companiesMap},
'/notes/' : {base:'/notes/', items: notesMap},
},

socialLinks: [
{
Expand Down
40 changes: 40 additions & 0 deletions docs/.vitepress/sitemap/companies.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
const companiesMap = [
{
items: [
{ text: "General Guidelines", link: "/general" },
{ text: 'Before Application', link: "/beforeapplying" },
{ text: "Chaldal", link: "/chaldal" },
{ text: "Bevy Commerce", link: "/bevycommerce" },
{ text: 'Brain Station 23 <span class="VPBadge warning">updated</span>', link: "/bs23" },
{ text: "DSI", link: "/dsi" },
{ text: "Exabyting", link: "/exabyting" },
{ text: 'Fringecore <span class="VPBadge tip">new</span>', link: "/fringecore" },
{ text: 'Inverse AI <span class="VPBadge warning">updated</span>', link: "/inverseai" },
{ text: "IQVIA", link: "/iqvia" },
{ text: "Priyo", link: "/priyo" },
{ text: "Kite Games Studio", link: "/kite" },
{ text: "Orbitax", link: "/orbitax" },
{ text: "Optimizely", link: "/optimizely" },
{ text: "Relisource", link: "/relisource" },
{ text: "RoBenDevs", link: "/robendevs" },
{ text: "Spectrum", link: "/spectrum" },
{ text: "SRBD", link: "/srbd" },
{ text: "Synesis IT", link: "/synesis" },
{
text: "Therap BD",
link: "/therap/",
items: [
{ text: 'Software Engineer <span class="VPBadge warning">updated</span>', link: "/therap/swe.md" },
{ text: "Database Engineer", link: "/therap/dbe.md" }
],
},
{ text: "WSD", link: "/wsd" },
{ text: "WellDev", link: "/welldev" },
],
},
{
items: [{ text: "CSE competitions", link: "/competitions" }],
},
]

export default companiesMap;
21 changes: 21 additions & 0 deletions docs/.vitepress/sitemap/notes.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const notesMap = [
{
items: [
{ text: "General Guidelines", link: "/general" },
],
},
{
text: "Database",
items: [
{ text: "Resources", link: "/database" },
],
},
{
text: "Data Structures",
items: [
{ text: "General Guidelines", link: "/general" }
],
},
]

export default notesMap;
32 changes: 30 additions & 2 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,37 @@ details {
padding: 16px 16px 8px;
line-height: 24px;
font-size: var(--vp-custom-block-font-size);
margin-bottom: 8px
margin-bottom: 8px;
margin-top: 8px;
font-weight: 400;
}

article {
border-color: var(--vp-custom-block-details-border);
color: var(--vp-custom-block-details-text);
background-color: var(--vp-custom-block-details-bg);
border-radius: 8px;
padding: 16px 16px 8px;
line-height: 24px;
font-size: var(--vp-custom-block-font-size);
margin-bottom: 8px;
padding-top: 1px;
padding-bottom: 1px;
font-weight: 600;
}

article a {
color: var(--vp-badge-tip-text);
background-color: var(--vp-badge-tip-bg);
border-color: var(--vp-badge-tip-border);
border-radius: 8px;
text-decoration: none !important;
font-weight: 700;
padding: 8px;
}
article hr {
background-color: var(--vp-badge-tip-bg);
}
summary {
margin: 0 0 8px!important;
font-weight: 700;
Expand All @@ -19,4 +47,4 @@ summary {

.github-alert {
border-left: .35em solid #238636!important;
}
}
36 changes: 36 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Interview BD contents

This folder serves as the content repository for the site.

Add new company in the `/companies` folder.

If you need to add any image or something, then add the image in `/resource` folder and use that link.

## Directory structure
```bash
docs/
├── index.md # the home page
├── companies/ # All companies folder
│ ├── beforeapplying.md # A company page
│ ├── chaldal.md # Another company page
│ ├── ...
│ └── therap/ # A company iwith multiple files
│ ├── dbe.md # A role under the company
│ ├── index.md # Index page for the company
│ └── swe.md
├── notes/ # The notes folder
│ └── general.md # A page in the notes section
├── resource/ # Add your resources like images here
│ ├── README.md # Instruction page for resource
│ ├── image1.jpg # An image used in somewhere
│ └── image2.webp
└── .vitepress/
├── config.mjs # Site configuration file
├── sitemap/ # Folder containing sidebar contents
│ ├── companies.mjs # Sidebar of company section
│ └── notes.mjs # Sidebar of notes section
└── theme/
├── custom.css # Add custom css here
└── index.js

```
4 changes: 4 additions & 0 deletions docs/companies/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Company Section
This folder is used to add questions for specific companies. Add new companies by creating a new file with .md extension.

If you want to add multiple files for the same company, then create a folder with the company name and create individual files in it. This can be done to add seperate pages for seperate positions of a company. See `Therap BD` for example.
File renamed without changes.
Loading

0 comments on commit f32ff1f

Please sign in to comment.