diff --git a/_config.yml b/_config.yml index ad42809..284e8b2 100644 --- a/_config.yml +++ b/_config.yml @@ -13,10 +13,10 @@ # you will see them accessed via {{ site.title }}, {{ site.github_repo }}, and so on. # You can create any custom variable you would like, and they will be accessible # in the templates via {{ site.myvariable }}. -title: Just the Docs +title: Quang Thắng description: A Jekyll theme for documentation -baseurl: "/just-the-docs" # the subpath of your site, e.g. /blog -url: "https://pmarsceill.github.io" # the base hostname & protocol for your site, e.g. http://example.com +baseurl: "" # the subpath of your site, e.g. /blog +url: "" # the base hostname & protocol for your site, e.g. http://example.com permalink: pretty exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile" diff --git a/docs/configuration.md b/docs/configuration.md deleted file mode 100644 index 7b21bfa..0000000 --- a/docs/configuration.md +++ /dev/null @@ -1,198 +0,0 @@ ---- -layout: default -title: Configuration -nav_order: 2 ---- - -# Configuration -{: .no_toc } - - -Just the Docs has some specific configuration parameters that can be defined in your Jekyll site's _config.yml file. -{: .fs-6 .fw-300 } - -## Table of contents -{: .no_toc .text-delta } - -1. TOC -{:toc} - ---- - - -View this site's [_config.yml](https://github.com/pmarsceill/just-the-docs/tree/master/_config.yml) file as an example. - - -## Site logo - -```yaml -# Set a path/url to a logo that will be displayed instead of the title -logo: "/assets/images/just-the-docs.png" -``` - -## Search - -```yaml -# Enable or disable the site search -# Supports true (default) or false -search_enabled: true - -search: - # Split pages into sections that can be searched individually - # Supports 1 - 6, default: 2 - heading_level: 2 - # Maximum amount of previews per search result - # Default: 3 - previews: 3 - # Maximum amount of words to display before a matched word in the preview - # Default: 5 - preview_words_before: 5 - # Maximum amount of words to display after a matched word in the preview - # Default: 10 - preview_words_after: 10 - # Set the search token separator - # Default: /[\s\-/]+/ - # Example: enable support for hyphenated search words - tokenizer_separator: /[\s/]+/ - # Display the relative url in search results - # Supports true (default) or false - rel_url: true - # Enable or disable the search button that appears in the bottom right corner of every page - # Supports true or false (default) - button: false -``` - -## Aux links - -```yaml -# Aux links for the upper right navigation -aux_links: - "Just the Docs on GitHub": - - "//github.com/pmarsceill/just-the-docs" - -# Makes Aux links open in a new tab. Default is false -aux_links_new_tab: false -``` - -## Heading anchor links - -```yaml -# Heading anchor links appear on hover over h1-h6 tags in page content -# allowing users to deep link to a particular heading on a page. -# -# Supports true (default) or false -heading_anchors: true -``` - -## Footer content - -```yaml -# Footer content -# appears at the bottom of every page's main content -# Note: The footer_content option is deprecated and will be removed in a future major release. Please use `_includes/footer_custom.html` for more robust -markup / liquid-based content. -footer_content: "Copyright © 2017-2020 Patrick Marsceill. Distributed by an MIT license." - -# Footer last edited timestamp -last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter -last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html - -# Footer "Edit this page on GitHub" link text -gh_edit_link: true # show or hide edit this page link -gh_edit_link_text: "Edit this page on GitHub." -gh_edit_repository: "https://github.com/pmarsceill/just-the-docs" # the github URL for your repo -gh_edit_branch: "master" # the branch that your docs is served from -# gh_edit_source: docs # the source that your files originate from -gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately -``` - -_note: `footer_content` is deprecated, but still supported. For a better experience we have moved this into an include called `_includes/footer_custom.html` which will allow for robust markup / liquid-based content._ - -- the "page last modified" data will only display if a page has a key called `last_modified_date`, formatted in some readable date format -- `last_edit_time_format` uses Ruby's DateTime formatter; see examples and more information [at this link.](https://apidock.com/ruby/DateTime/strftime) -- `gh_edit_repository` is the URL of the project's GitHub repository -- `gh_edit_branch` is the branch that the docs site is served from; defaults to `master` -- `gh_edit_source` is the source directory that your project files are stored in (should be the same as [site.source](https://jekyllrb.com/docs/configuration/options/)) -- `gh_edit_view_mode` is `"tree"` by default, which brings the user to the github page; switch to `"edit"` to bring the user directly into editing mode - -## Color scheme - -```yaml -# Color scheme supports "light" (default) and "dark" -color_scheme: dark -``` - - - - -See [Customization]({{ site.baseurl }}{% link docs/customization.md %}) for more information. - -## Google Analytics - -```yaml -# Google Analytics Tracking (optional) -# e.g, UA-1234567-89 -ga_tracking: UA-5555555-55 -ga_tracking_anonymize_ip: true # Use GDPR compliant Google Analytics settings (true by default) -``` - -## Document collections - -By default, the navigation and search include normal [pages](https://jekyllrb.com/docs/pages/). -Instead, you can also use [Jekyll collections](https://jekyllrb.com/docs/collections/) which group documents semantically together. - -For example, put all your documentation files in the `_docs` folder and create the `docs` collection: -```yaml -# Define Jekyll collections -collections: - # Define a collection named "docs", its documents reside in the "_docs" directory - docs: - permalink: "/:collection/:path/" - output: true - -just_the_docs: - # Define which collections are used in just-the-docs - collections: - # Reference the "docs" collection - docs: - # Give the collection a name - name: Documentation - # Exclude the collection from the navigation - # Supports true or false (default) - nav_exclude: false - # Exclude the collection from the search - # Supports true or false (default) - search_exclude: false -``` - -You can reference multiple collections. -This creates categories in the navigation with the configured names. -```yaml -collections: - docs: - permalink: "/:collection/:path/" - output: true - tutorials: - permalink: "/:collection/:path/" - output: true - -just_the_docs: - collections: - docs: - name: Documentation - tutorials: - name: Tutorials -``` - diff --git a/docs/customization.md b/docs/customization.md deleted file mode 100644 index cbcd38c..0000000 --- a/docs/customization.md +++ /dev/null @@ -1,115 +0,0 @@ ---- -layout: default -title: Customization -nav_order: 6 ---- - -# Customization -{: .no_toc } - -## Table of contents -{: .no_toc .text-delta } - -1. TOC -{:toc} - ---- - -## Color schemes -{: .d-inline-block } - -New -{: .label .label-green } - -Just the Docs supports two color schemes: light (default), and dark. - -To enable a color scheme, set the `color_scheme` parameter in your site's `_config.yml` file: - -#### Example -{: .no_toc } - -```yaml -# Color scheme supports "light" (default) and "dark" -color_scheme: dark -``` - - - - -## Custom schemes - -### Define a custom scheme - -You can add custom schemes. -If you want to add a scheme named `foo` (can be any name) just add a file `_sass/color_schemes/foo.scss` (replace `foo` by your scheme name) -where you override theme variables to change colors, fonts, spacing, etc. - -Available variables are listed in the [_variables.scss](https://github.com/pmarsceill/just-the-docs/tree/master/_sass/support/_variables.scss) file. - -For example, to change the link color from the purple default to blue, include the following inside your scheme file: - -#### Example -{: .no_toc } - -```scss -$link-color: $blue-000; -``` - -_Note:_ Editing the variables directly in `_sass/support/variables.scss` is not recommended and can cause other dependencies to fail. -Please use scheme files. - -### Use a custom scheme - -To use the custom color scheme, only set the `color_scheme` parameter in your site's `_config.yml` file: -```yaml -color_scheme: foo -``` - -### Switchable custom scheme - -If you want to be able to change the scheme dynamically, for example via javascript, just add a file `assets/css/just-the-docs-foo.scss` (replace `foo` by your scheme name) -with the following content:` - -{% raw %} - --- - --- - {% include css/just-the-docs.scss.liquid color_scheme="foo" %} -{% endraw %} - -This allows you to switch the scheme via the following javascript. - -```js -jtd.setTheme('foo'); -``` - -## Override and completely custom styles - -For styles that aren't defined as variables, you may want to modify specific CSS classes. -Additionally, you may want to add completely custom CSS specific to your content. -To do this, put your styles in the file `_sass/custom/custom.scss`. -This will allow for all overrides to be kept in a single file, and for any upstream changes to still be applied. - -For example, if you'd like to add your own styles for printing a page, you could add the following styles. - -#### Example -{: .no_toc } - -```scss -// Print-only styles. -@media print { - .side-bar, .page-header { display: none; } - .main-content { max-width: auto; margin: 1em;} -} -``` diff --git a/docs/hoa-hoc/hoa-hoc.md b/docs/hoa-hoc/hoa-hoc.md new file mode 100644 index 0000000..245db3c --- /dev/null +++ b/docs/hoa-hoc/hoa-hoc.md @@ -0,0 +1,9 @@ +--- +layout: default +title: Hóa học +has_children: true +permalink: hoa-hoc +nav_order: 4 +--- + +# Hóa học diff --git a/docs/hoa-hoc/lop-10/lop-10.md b/docs/hoa-hoc/lop-10/lop-10.md new file mode 100644 index 0000000..b1b276e --- /dev/null +++ b/docs/hoa-hoc/lop-10/lop-10.md @@ -0,0 +1,7 @@ +--- +layout: default +title: Hóa học 10 +has_children: true +permalink: hoa-hoc/lop-10 +parent: Hóa học +--- \ No newline at end of file diff --git a/docs/index-test.md b/docs/index-test.md deleted file mode 100644 index 8a9046a..0000000 --- a/docs/index-test.md +++ /dev/null @@ -1,180 +0,0 @@ ---- -layout: default -title: Markdown kitchen sink -nav_order: 99 ---- - -Text can be **bold**, _italic_, or ~~strikethrough~~. - -[Link to another page](another-page). - -There should be whitespace between paragraphs. - -There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project. - -# [](#header-1)Header 1 - -This is a normal paragraph following a header. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. - -## [](#header-2)Header 2 - -> This is a blockquote following a header. -> -> When something is important enough, you do it even if the odds are not in your favor. - -### [](#header-3)Header 3 - -```js -// Javascript code with syntax highlighting. -var fun = function lang(l) { - dateformat.i18n = require('./lang/' + l) - return true; -} -``` - -```ruby -# Ruby code with syntax highlighting -GitHubPages::Dependencies.gems.each do |gem, version| - s.add_dependency(gem, "= #{version}") -end -``` - -#### [](#header-4)Header 4 `with code not transformed` - -* This is an unordered list following a header. -* This is an unordered list following a header. -* This is an unordered list following a header. - -##### [](#header-5)Header 5 - -1. This is an ordered list following a header. -2. This is an ordered list following a header. -3. This is an ordered list following a header. - -###### [](#header-6)Header 6 - -| head1 | head two | three | -|:-------------|:------------------|:------| -| ok | good swedish fish | nice | -| out of stock | good and plenty | nice | -| ok | good `oreos` | hmm | -| ok | good `zoute` drop | yumm | - -### There's a horizontal rule below this. - -* * * - -### Here is an unordered list: - -* Item foo -* Item bar -* Item baz -* Item zip - -### And an ordered list: - -1. Item one -1. Item two -1. Item three -1. Item four - -### And a nested list: - -- level 1 item - - level 2 item - - level 2 item - - level 3 item - - level 3 item -- level 1 item - - level 2 item - - level 2 item - - level 2 item -- level 1 item - - level 2 item - - level 2 item -- level 1 item - -### Nesting an ol in ul in an ol - -- level 1 item (ul) - 1. level 2 item (ol) - 1. level 2 item (ol) - - level 3 item (ul) - - level 3 item (ul) -- level 1 item (ul) - 1. level 2 item (ol) - 1. level 2 item (ol) - - level 3 item (ul) - - level 3 item (ul) - 1. level 4 item (ol) - 1. level 4 item (ol) - - level 3 item (ul) - - level 3 item (ul) -- level 1 item (ul) - -### And a task list - -- [ ] Hello, this is a TODO item -- [ ] Hello, this is another TODO item -- [x] Goodbye, this item is done - -### Small image - - - -### Large image - - - - -### Definition lists can be used with HTML syntax. - -
` element, Just the Docs uses a native system font stack for monospace fonts: - -```scss -"SFMono-Regular", Menlo, Consolas, Monospace -``` - -ABCDEFGHIJKLMNOPQRSTUVWXYZ -abcdefghijklmnopqrstuvwxyz -{: .fs-5 .ls-10 .text-mono .code-example } - ---- - -## Responsive type scale - -Just the Docs uses a responsive type scale that shifts depending on the viewport size. - -| Selector | Small screen size `font-size` | Large screen size `font-size` | -|:----------------------|:---------------------------------|:------------------------------| -| `h1`, `.text-alpha` | 32px | 36px | -| `h2`, `.text-beta` | 18px | 24px | -| `h3`, `.text-gamma` | 16px | 18px | -| `h4`, `.text-delta` | 14px | 16px | -| `h5`, `.text-epsilon` | 16px | 18px | -| `h6`, `.text-zeta` | 18px | 24px | -| `body` | 14px | 16px | - ---- - -## Headings - -Headings are rendered like this: - -- -### Code of Conduct - -Just the Docs is committed to fostering a welcoming community. - -[View our Code of Conduct](https://github.com/pmarsceill/just-the-docs/tree/master/CODE_OF_CONDUCT.md) on our GitHub repository.--```markdown -# Heading 1 -## Heading 2 -### Heading 3 -#### Heading 4 -##### Heading 5 -###### Heading 6 -``` - ---- - -## Body text - -Default body text is rendered like this: - -Heading 1
-Heading 2
-Heading 3
-Heading 4
-Heading 5
-Heading 6
--Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. --```markdown -Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -``` - ---- - -## Inline elements - --Text can be **bold**, _italic_, or ~~strikethrough~~. - -[Link to another page](another-page). --```markdown -Text can be **bold**, _italic_, or ~~strikethrough~~. - -[Link to another page](another-page). -``` - ---- - -## Typographic Utilities - -There are a number of specific typographic CSS classes that allow you to override default styling for font size, font weight, line height, and capitalization. - -[View typography utilities]({{ site.baseurl }}{% link docs/utilities/utilities.md %}#typography){: .btn .btn-outline } diff --git a/docs/ui-components/ui-components.md b/docs/ui-components/ui-components.md deleted file mode 100644 index 7d75a69..0000000 --- a/docs/ui-components/ui-components.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -layout: default -title: UI Components -nav_order: 3 -has_children: true -permalink: /docs/ui-components ---- - -# UI Components - -To make it as easy as possible to write documentation in plain Markdown, most UI components are styled using default Markdown elements with few additional CSS classes needed. -{: .fs-6 .fw-300 } diff --git a/docs/utilities/color.md b/docs/utilities/color.md deleted file mode 100644 index 0f37597..0000000 --- a/docs/utilities/color.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -layout: default -title: Color -parent: Utilities ---- - -# Color Utilities -{: .no_toc } - -## Table of contents -{: .no_toc .text-delta } - -1. TOC -{:toc} - ---- - -All the colors used in Just the Docs have been systematized into a series of variables that have been extended to both font color and background color utility classes. - -## Light Greys - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `grey-lt-000` | `.text-grey-lt-000` | `.bg-grey-lt-000` | -| `grey-lt-100` | `.text-grey-lt-100` | `.bg-grey-lt-100` | -| `grey-lt-200` | `.text-grey-lt-200` | `.bg-grey-lt-200` | -| `grey-lt-300` | `.text-grey-lt-300` | `.bg-grey-lt-300` | - -## Dark Greys - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `grey-dk-000` | `.text-grey-dk-000` | `.bg-grey-dk-000` | -| `grey-dk-100` | `.text-grey-dk-100` | `.bg-grey-dk-100` | -| `grey-dk-200` | `.text-grey-dk-200` | `.bg-grey-dk-200` | -| `grey-dk-250` | `.text-grey-dk-250` | `.bg-grey-dk-250` | -| `grey-dk-300` | `.text-grey-dk-300` | `.bg-grey-dk-300` | - -## Purples - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `purple-000` | `.text-purple-000` | `.bg-purple-000` | -| `purple-100` | `.text-purple-100` | `.bg-purple-100` | -| `purple-200` | `.text-purple-200` | `.bg-purple-200` | -| `purple-300` | `.text-purple-300` | `.bg-purple-300` | - -## Blues - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `blue-000` | `.text-blue-000` | `.bg-blue-000` | -| `blue-100` | `.text-blue-100` | `.bg-blue-100` | -| `blue-200` | `.text-blue-200` | `.bg-blue-200` | -| `blue-300` | `.text-blue-300` | `.bg-blue-300` | - -## Greens - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `green-000` | `.text-green-000` | `.bg-green-000` | -| `green-100` | `.text-green-100` | `.bg-green-100` | -| `green-200` | `.text-green-200` | `.bg-green-200` | -| `green-300` | `.text-green-300` | `.bg-green-300` | - -## Yellows - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `yellow-000` | `.text-yellow-000` | `.bg-yellow-000` | -| `yellow-100` | `.text-yellow-100` | `.bg-yellow-100` | -| `yellow-200` | `.text-yellow-200` | `.bg-yellow-200` | -| `yellow-300` | `.text-yellow-300` | `.bg-yellow-300` | - -## Reds - -| Color value | Font color utility | Background color utility | -|:---------------|:---------------------|:-------------------------| -| `red-000` | `.text-red-000` | `.bg-red-000` | -| `red-100` | `.text-red-100` | `.bg-red-100` | -| `red-200` | `.text-red-200` | `.bg-red-200` | -| `red-300` | `.text-red-300` | `.bg-red-300` | diff --git a/docs/utilities/layout.md b/docs/utilities/layout.md deleted file mode 100644 index c2f5eb3..0000000 --- a/docs/utilities/layout.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -layout: default -title: Layout -parent: Utilities ---- - -# Layout Utilities -{: .no_toc } - -## Table of contents -{: .no_toc .text-delta } - -1. TOC -{:toc} - ---- - -## Spacing - -These spacers are available to use for margins and padding with responsive utility classes. Combine these prefixes with a screen size and spacing scale to use them responsively. - -| Classname prefix | What it does | -|:-----------------|:------------------------------| -| `.m-` | `margin` | -| `.mx-` | `margin-left`, `margin-right` | -| `.my-` | `margin top`, `margin bottom` | -| `.mt-` | `margin-top` | -| `.mr-` | `margin-right` | -| `.mb-` | `margin-bottom` | -| `.ml-` | `margin-left` | - -| Classname prefix | What it does | -|:-----------------|:--------------------------------| -| `.p-` | `padding` | -| `.px-` | `padding-left`, `padding-right` | -| `.py-` | `padding top`, `padding bottom` | -| `.pt-` | `padding-top` | -| `.pr-` | `padding-right` | -| `.pb-` | `padding-bottom` | -| `.pl-` | `padding-left` | - -Spacing values are based on a `1rem = 16px` spacing scale, broken down into these units: - -| Spacer/suffix | Size in rems | Rem converted to px | -|:---------------|:--------------|:--------------------| -| `1` | 0.25rem | 4px | -| `2` | 0.5rem | 8px | -| `3` | 0.75rem | 12px | -| `4` | 1rem | 16px | -| `5` | 1.5rem | 24px | -| `6` | 2rem | 32px | -| `7` | 2.5rem | 40px | -| `8` | 3rem | 48px | -| `auto` | auto | auto | - -Use `mx-auto` to horizontally center elements. - -#### Examples -{: .no_toc } - -In Markdown, use the `{: }` wrapper to apply custom classes: - -```markdown -This paragraph will have a margin bottom of 1rem/16px at large screens. -{: .mb-lg-4 } - -This paragraph will have 2rem/32px of padding on the right and left at all screen sizes. -{: .px-6 } -``` - -## Horizontal Alignment - -| Classname | What it does | -|:------------------------|:---------------------------------| -| `.float-left` | `float: left` | -| `.float-right` | `float: right` | -| `.flex-justify-start` | `justify-content: flex-start` | -| `.flex-justify-end` | `justify-content: flex-end` | -| `.flex-justify-between` | `justify-content: space-between` | -| `.flex-justify-around` | `justify-content: space-around` | - -_Note: any of the `flex-` classes must be used on a parent element that has `d-flex` applied to it._ - -## Vertical Alignment - -| Classname | What it does | -|:-----------------------|:--------------------------------| -| `.v-align-baseline` | `vertical-align: baseline` | -| `.v-align-bottom` | `vertical-align: bottom` | -| `.v-align-middle` | `vertical-align: middle` | -| `.v-align-text-bottom` | `vertical-align: text-bottom` | -| `.v-align-text-top` | `vertical-align: text-top` | -| `.v-align-top` | `vertical-align: top` | - -## Display - -Display classes aid in adapting the layout of the elements on a page: - -| Class | | -|:------------------|:------------------------| -| `.d-block` | `display: block` | -| `.d-flex` | `display: flex` | -| `.d-inline` | `display: inline` | -| `.d-inline-block` | `display: inline-block` | -| `.d-none` | `display: none` | - -Use these classes in conjunction with the responsive modifiers. - -#### Examples -{: .no_toc } - -In Markdown, use the `{: }` wrapper to apply custom classes: - -```markdown -This button will be hidden until medium screen sizes: - -[ A button ](#url) -{: .d-none .d-md-inline-block } - -These headings will be `inline-block`: - -### heading 3 -{: .d-inline-block } - -### heading 3 -{: .d-inline-block } -``` diff --git a/docs/utilities/responsive-modifiers.md b/docs/utilities/responsive-modifiers.md deleted file mode 100644 index c732530..0000000 --- a/docs/utilities/responsive-modifiers.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: default -title: Responsive Modifiers -parent: Utilities ---- - -# Responsive modifiers - -Just the Docs spacing works in conjunction with a variety of modifiers that allow you to target specific screen sizes responsively. Use these in conjunction with spacing and display prefix and suffix classes. - -| Modifier | Screen size | -|:----------|:-------------------------------------| -| (none) | All screens until the next modifier | -| `xs` | 320px (20rem) and up | -| `sm` | 500px (31.25rem) and up | -| `md` | 740px (46.25rem) and up | -| `lg` | 1120px (70rem) and up | -| `xl` | 1400px (87.5rem) and up | diff --git a/docs/utilities/typography.md b/docs/utilities/typography.md deleted file mode 100644 index 1c5dca9..0000000 --- a/docs/utilities/typography.md +++ /dev/null @@ -1,156 +0,0 @@ ---- -layout: default -title: Typography -parent: Utilities ---- - -# Typography Utilities -{: .no_toc } - -## Table of contents -{: .no_toc .text-delta } - -1. TOC -{:toc} - ---- - -## Font size - -Use the `.fs-1` - `.fs-10` to set an explicit font-size. - -| Class | Small screen size `font-size` | Large screen size `font-size` | -|:--------|:-------------------------------|:------------------------------| -| `.fs-1` | 9px | 10px | -| `.fs-2` | 11px | 12px | -| `.fs-3` | 12px | 14px | -| `.fs-4` | 14px | 16px | -| `.fs-5` | 16px | 18px | -| `.fs-6` | 18px | 24px | -| `.fs-7` | 24px | 32px | -| `.fs-8` | 32px | 38px | -| `.fs-9` | 38px | 42px | -| `.fs-10`| 42px | 48px | - --Font size 1 -{: .fs-1 } -Font size 2 -{: .fs-2 } -Font size 3 -{: .fs-3 } -Font size 4 -{: .fs-4 } -Font size 5 -{: .fs-5 } -Font size 6 -{: .fs-6 } -Font size 7 -{: .fs-7 } -Font size 8 -{: .fs-8 } -Font size 9 -{: .fs-9 } -Font size 10 -{: .fs-10 } --```markdown -In Markdown, use the `{: }` wrapper to apply custom classes: - -Font size 1 -{: .fs-1 } -Font size 2 -{: .fs-2 } -Font size 3 -{: .fs-3 } -Font size 4 -{: .fs-4 } -Font size 5 -{: .fs-5 } -Font size 6 -{: .fs-6 } -Font size 7 -{: .fs-7 } -Font size 8 -{: .fs-8 } -Font size 9 -{: .fs-9 } -Font size 10 -{: .fs-10 } -``` - -## Font weight - -Use the `.fw-300` - `.fw-700` to set an explicit font-size. - --Font weight 300 -{: .fw-300 } -Font weight 400 -{: .fw-400 } -Font weight 500 -{: .fw-500 } -Font weight 700 -{: .fw-700 } --```markdown -In Markdown, use the `{: }` wrapper to apply custom classes: - -Font weight 300 -{: .fw-300 } -Font weight 400 -{: .fw-400 } -Font weight 500 -{: .fw-500 } -Font weight 700 -{: .fw-700 } -``` - -## Line height - -Use the `lh-` classes to explicitly apply line height to text. - -| Class | `line-height` value | Notes | -|:--------------|:---------------------|:------------------------------| -| `.lh-0` | 0 | | -| `.lh-tight` | 1.1 | Default for headings | -| `.lh-default` | 1.4 | Default for body (paragraphs) | - --No Line height -No Line height -{: .lh-0 } - -Tight line height -Tight line height -{: .lh-tight } - -Default line height -Default line height -{: .fh-default } --```markdown -In Markdown, use the `{: }` wrapper to apply custom classes: - -No Line height -No Line height -{: .lh-0 } - -Tight line height -Tight line height -{: .lh-tight } - -Default line height -Default line height -{: .fh-default } -``` - -## Text justification - -By default text is justified left. Use these `text-` classes to override settings: - -| Class | What it does | -|:---------------|:---------------------| -| `.text-left` | `text-align: left` | -| `.text-right` | `text-align: right` | -| `.text-center` | `text-align: center` | diff --git a/docs/utilities/utilities.md b/docs/utilities/utilities.md deleted file mode 100644 index fe4f780..0000000 --- a/docs/utilities/utilities.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -layout: default -title: Utilities -nav_order: 4 -has_children: true -permalink: docs/utilities ---- - -# Utilities -{: .no_toc } - -CSS utility classes come in handy when you to want to override default styles to create additional whitespace (margins/padding), correct unexpected shifts in font size or weight, add color, or hide (or show) something at a specific screen size. -{: .fs-6 .fw-300 } diff --git a/docs/vat-li/lop-10/lop-10.md b/docs/vat-li/lop-10/lop-10.md new file mode 100644 index 0000000..e4a54f1 --- /dev/null +++ b/docs/vat-li/lop-10/lop-10.md @@ -0,0 +1,8 @@ +--- +layout: default +title: Vật lí 10 +has_children: true +nav_order: 1 +parent: Vật lí +permalink: vat-li/lop-10 +--- \ No newline at end of file diff --git a/docs/vat-li/vat-li.md b/docs/vat-li/vat-li.md new file mode 100644 index 0000000..cbe230f --- /dev/null +++ b/docs/vat-li/vat-li.md @@ -0,0 +1,9 @@ +--- +layout: default +title: Vật lí +nav_order: 3 +has_children: true +permalink: vat-li +--- + +# Vật lí \ No newline at end of file diff --git a/index.md b/index.md index fc2b709..e621d58 100644 --- a/index.md +++ b/index.md @@ -6,91 +6,12 @@ description: "Just the Docs is a responsive Jekyll theme with built-in search th permalink: / --- -# Focus on writing good documentation +# Chia sẻ kiến thức cá nhân {: .fs-9 } -Just the Docs gives your documentation a jumpstart with a responsive Jekyll theme that is easily customizable and hosted on GitHub Pages. +Đây là nơi tổng hợp những kiến thức mình học được. Một số nội dung mang tính cá nhân và có thể có sai sót. {: .fs-6 .fw-300 } -[Get started now](#getting-started){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 } [View it on GitHub](https://github.com/pmarsceill/just-the-docs){: .btn .fs-5 .mb-4 .mb-md-0 } +[Khám phá](#getting-started){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 } [View it on GitHub](https://github.com/pmarsceill/just-the-docs){: .btn .fs-5 .mb-4 .mb-md-0 } --- - -## Getting started - -### Dependencies - -Just the Docs is built for [Jekyll](https://jekyllrb.com), a static site generator. View the [quick start guide](https://jekyllrb.com/docs/) for more information. Just the Docs requires no special plugins and can run on GitHub Pages' standard Jekyll compiler. The [Jekyll SEO Tag plugin](https://github.com/jekyll/jekyll-seo-tag) is included by default (no need to run any special installation) to inject SEO and open graph metadata on docs pages. For information on how to configure SEO and open graph metadata visit the [Jekyll SEO Tag usage guide](https://jekyll.github.io/jekyll-seo-tag/usage/). - -### Quick start: Use as a GitHub Pages remote theme - -1. Add Just the Docs to your Jekyll site's `_config.yml` as a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) -```yaml -remote_theme: pmarsceill/just-the-docs -``` -You must have GitHub Pages enabled on your repo, one or more Markdown files, and a `_config.yml` file. [See an example repository](https://github.com/pmarsceill/jtd-remote) - -### Local installation: Use the gem-based theme - -1. Install the Ruby Gem -```bash -$ gem install just-the-docs -``` -```yaml -# .. or add it to your your Jekyll site’s Gemfile -gem "just-the-docs" -``` -2. Add Just the Docs to your Jekyll site’s `_config.yml` -```yaml -theme: "just-the-docs" -``` -3. _Optional:_ Initialize search data (creates `search-data.json`) -```bash -$ bundle exec just-the-docs rake search:init -``` -3. Run you local Jekyll server -```bash -$ jekyll serve -``` -```bash -# .. or if you're using a Gemfile (bundler) -$ bundle exec jekyll serve -``` -4. Point your web browser to [http://localhost:4000](http://localhost:4000) - -If you're hosting your site on GitHub Pages, [set up GitHub Pages and Jekyll locally](https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll) so that you can more easily work in your development environment. - -### Configure Just the Docs - -- [See configuration options]({{ site.baseurl }}{% link docs/configuration.md %}) - ---- - -## About the project - -Just the Docs is © 2017-{{ "now" | date: "%Y" }} by [Patrick Marsceill](http://patrickmarsceill.com). - -### License - -Just the Docs is distributed by an [MIT license](https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt). - -### Contributing - -When contributing to this repository, please first discuss the change you wish to make via issue, -email, or any other method with the owners of this repository before making a change. Read more about becoming a contributor in [our GitHub repo](https://github.com/pmarsceill/just-the-docs#contributing). - -#### Thank you to the contributors of Just the Docs! - -