Skip to content

Commit 50957bd

Browse files
committed
markdown
1 parent 9f04d64 commit 50957bd

File tree

7 files changed

+40
-82
lines changed

7 files changed

+40
-82
lines changed

_includes/about.html

Lines changed: 27 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,35 @@
11
<!-- About Section -->
2-
<section id="about" class="container content-section text-center">
2+
<section id="about" class="container content-section">
33
<div class="row">
4+
<script>
5+
function renderMarkdownFile(filePath) {
6+
fetch(filePath)
7+
.then(response => {
8+
if (!response.ok) {
9+
throw new Error(`HTTP error! Status: ${response.status}`);
10+
}
11+
return response.text();
12+
})
13+
.then(markdown => {
14+
marked.use({
15+
pedantic: false,
16+
gfm: true,
17+
});
18+
const html = marked.parse(markdown);
19+
document.getElementById('markdown-container').innerHTML = html;
20+
})
21+
.catch(error => {
22+
console.error('Error fetching Markdown file:', error);
23+
});
24+
}
25+
renderMarkdownFile('https://raw.githubusercontent.com/qlibs/.github/main/profile/README.md');
26+
</script>
27+
428
<div class="col-lg-8 col-lg-offset-2">
529
<h2>About</h2>
630
<hr />
7-
8-
<pre align="left" style="color:white; background-color: #202121; border: none; padding: 10px;">
9-
Qlibs++ - Modern C++ libraries
10-
11-
Mission
12-
13-
Quality
14-
- C++20+ (gcc, clang, msvc*)
15-
- Compile-time self testing (can be disabled with -DNTEST)
16-
- Compiles cleanly with `-Wall -Wextra -pedantic -fsantize=memory/undefined | /WX /W4`
17-
- Focused on composability and declarative interfaces (easy to use hard to misuse)
18-
19-
Performance
20-
- Compile-time driven optimizations
21-
- x86-64* driven optimizations and benchmarks
22-
- No virtual, No RTTI, No exceptions
23-
- Focused on fast compilation times
24-
25-
Simplicity
26-
- Single header/module (including documentation and tests)
27-
- Single purpose (unix philosophy)
28-
- Minimal dependencies (none or STL*)
29-
- Minimal API (available on https://compiler-explorer.com)
30-
31-
* Selected libraries
32-
33-
---
34-
35-
MIT License - https://opensource.org/license/mit</pre>
36-
37-
<pre align="left" style="color:white; background-color: #202121; border: none; padding: 10px;">
38-
FAQ
39-
40-
- Are Qlibs libraries free to use?
41-
> Yes, free forever.
42-
43-
- Can Qlibs libraries be used in comercial projects?
44-
> Yes, license permits comerical usage - see License for details.
45-
46-
- Is the aim for Qlibs libraries to be standarized?
47-
> The main goal for the libraries is to solve specific problem in the best possible way.
48-
Standarization, in some cases, may or may not follow but it's not the goal.
49-
50-
- Are Qlibs libraries ABI stable?
51-
> ABI stability is not the main priority for the libraries - see Mission.
52-
53-
- How to report bugs/issues?
54-
> Github issues are prefered way for reporting bugs/issues.
55-
56-
- How to contribute?
57-
> Contriubutions are always welcome -
58-
see https://docs.github.com/en/pull-requests for details.
59-
60-
Note: `main` branch is the stable branch.
61-
62-
- How to add/request a new feature/library?
63-
> Github discussions - https://github.com/orgs/qlibs/discussions -
64-
sre prefered way to discuss/add/request new features/libraries.
65-
66-
Note: Mission goals are required to be fulfiled for new libraries.
67-
68-
- How Qlibs libraries differ from Boost/Poco/... libraries?
69-
> Both: Boost and Poco libraries are established and powerful C++ libraries.
70-
Qlibs libraries have different, more narrowed, focus and goals.
71-
72-
- Why Qlibs?
73-
> Q stands for Quick(Fast), Quality, libs stands for libraries.
74-
</pre>
75-
<hr />
31+
<div class="disable-css" id="markdown-container"></div>
7632
</div>
7733
</div>
7834
</section>
35+

_includes/css/styles.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212

1313
body {
1414
width: 100%;
15+
color: #fff;
16+
background-color: {{ site.color.primary-dark }};
17+
-webkit-background-size: cover;
18+
-moz-background-size: cover;
19+
background-size: cover;
20+
-o-background-size: cover;
1521
}
1622

1723
/* css for start page asking for username */
@@ -100,5 +106,6 @@ body {
100106
margin-right: 20px;
101107
color: white;
102108
}
103-
104-
/* End code to modify */
109+
.intro {
110+
padding: 300px 0;
111+
}

_includes/head.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
<head>
22
<meta charset="utf-8">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<!--<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>-->
5-
<!--<meta name="viewport" content="width=device-width">-->
6-
<!--<meta name="description" content="{{ site.description }}">-->
74
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
85

96
<!-- Custom CSS & Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->
107
<link rel="stylesheet" href="{{ "/style.css" | prepend: site.baseurl }}">
118

12-
<!-- Custom Fonts -->
13-
<link rel="stylesheet" href="{{ "/css/font-awesome/css/font-awesome.min.css" | prepend: site.baseurl }}">
14-
<link href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
15-
<link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
9+
<script src="https://cdn.jsdelivr.net/npm/marked@14.0.0/marked.min.js"></script>
1610

1711
</head>

_includes/libraries.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ <h2>Libraries</h2>
1010
<hr />
1111
<div id="repo-box"></div>
1212
<hr />
13-
1413
</div>
1514
</div>
1615
</section>

_layouts/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{% include css/bootstrap.min.css %}
2-
{% include css/grayscale.css %}
2+
/*{% include css/grayscale.css %}*/
33
{% include css/styles.css %}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
layout: default
3-
---
3+
---

js/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function genRepo(user) {
3838

3939
if (repo_name.includes("github.io")) continue;
4040
if (repo_name.includes("qlibs")) continue;
41+
if (repo_name.includes(".github")) continue;
4142

4243
// replaces null values to be better represented when displayed
4344
if (repo_language == null) {

0 commit comments

Comments
 (0)