mirror of
https://github.com/twbs/bootstrap.git
synced 2025-07-03 00:02:25 -04:00
Compare commits
5 Commits
b6db7dd1e2
...
73fe65f847
Author | SHA1 | Date | |
---|---|---|---|
|
73fe65f847 | ||
|
c5074c7c18 | ||
|
879d1d15dc | ||
|
7d12ff7b3b | ||
|
9fce97c4b2 |
@ -435,7 +435,7 @@ export const extra_css = ['navbars.css']
|
||||
</nav>
|
||||
|
||||
<div>
|
||||
<div class="bg-body-tertiaryp-5 rounded">
|
||||
<div class="bg-body-tertiary p-5 rounded">
|
||||
<div class="col-sm-8 mx-auto">
|
||||
<h1>Navbar examples</h1>
|
||||
<p>This example is a quick exercise to illustrate how the navbar and its contents work. Some navbars extend the width of the viewport, others are confined within a <code>.container</code>. For positioning of navbars, checkout the <a href={getVersionedDocsPath('/examples/navbar-static/')}>top</a> and <a href={getVersionedDocsPath('/examples/navbar-fixed/')}>fixed top</a> examples.</p>
|
||||
|
@ -40,7 +40,7 @@ try {
|
||||
|
||||
content = matches[1]
|
||||
|
||||
// Fix the identation by removing extra spaces at the beginning of each line
|
||||
// Fix the indentation by removing extra spaces at the beginning of each line
|
||||
const lines = content.split('\n')
|
||||
const spaceCounts = lines.filter((line) => line.trim().length > 0).map((line) => line.match(/^ */)[0].length)
|
||||
const minSpaces = spaceCounts.length ? Math.min(...spaceCounts) : 0
|
||||
|
@ -42,7 +42,7 @@ try {
|
||||
|
||||
content = matches[1].replaceAll(' !default', '')
|
||||
|
||||
// Fix the identation by removing extra spaces at the beginning of each line
|
||||
// Fix the indentation by removing extra spaces at the beginning of each line
|
||||
const lines = content.split('\n')
|
||||
const spaceCounts = lines.filter((line) => line.trim().length > 0).map((line) => line.match(/^ */)[0].length)
|
||||
const minSpaces = spaceCounts.length ? Math.min(...spaceCounts) : 0
|
||||
|
@ -120,7 +120,7 @@ function bootstrap_auto_import() {
|
||||
const autoImportedComponentDefinition = `/**
|
||||
* DO NOT EDIT THIS FILE MANUALLY.
|
||||
*
|
||||
* This file is automatically generated by the Boostrap Astro Integration.
|
||||
* This file is automatically generated by the Bootstrap Astro Integration.
|
||||
* It contains the type definitions for the components that are auto imported in all pages.
|
||||
* @see site/src/libs/astro.ts
|
||||
*/
|
||||
|
@ -25,8 +25,8 @@ export function getVersionedDocsPath(docsPath: string): string {
|
||||
// This is useful to catch typos in docs paths.
|
||||
// Note: this function is only called during a production build.
|
||||
// Note: this could at some point be refactored to use Astro list of generated `routes` accessible in the
|
||||
// `astro:build:done` integration hook. Altho as of 03/14/2023, this is not possible due to the route's data only
|
||||
// containing informations regarding the last page generated page for dynamic routes.
|
||||
// `astro:build:done` integration hook. Although as of 03/14/2023, this is not possible due to the route's data only
|
||||
// containing information regarding the last page generated page for dynamic routes.
|
||||
// @see https://github.com/withastro/astro/issues/5802
|
||||
export function validateVersionedDocsPaths(distUrl: URL) {
|
||||
const { docs_version } = getConfig()
|
||||
|
@ -215,13 +215,13 @@ export interface PlaceholderOptions {
|
||||
*/
|
||||
markup: 'img' | 'svg'
|
||||
/**
|
||||
* The text to show in the image. You can explicitely pass the `false` boolean value (and not the string "false") to
|
||||
* The text to show in the image. You can explicitly pass the `false` boolean value (and not the string "false") to
|
||||
* hide the text.
|
||||
* @default "${width}x{$height)"
|
||||
*/
|
||||
text: string | false
|
||||
/**
|
||||
* Used in the SVG `title` tag. You can explicitely pass the `false` boolean value (and not the string "false") to
|
||||
* Used in the SVG `title` tag. You can explicitly pass the `false` boolean value (and not the string "false") to
|
||||
* hide the title.
|
||||
* @default "Placeholder"
|
||||
*/
|
||||
|
@ -56,7 +56,7 @@ export const remarkBsConfig: Plugin<[], Root> = function () {
|
||||
}
|
||||
}
|
||||
|
||||
// A remark plugin to add versionned docs links in markdown (or MDX) files.
|
||||
// A remark plugin to add versioned docs links in markdown (or MDX) files.
|
||||
// For example, [[docsref:/foo]] will be replaced with the `/docs/${docs_version}/foo` value with the `docs_version`
|
||||
// value being read from the `config.yml` file.
|
||||
// Note: this also works in frontmatter.
|
||||
|
2
site/src/types/auto-import.d.ts
vendored
2
site/src/types/auto-import.d.ts
vendored
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* DO NOT EDIT THIS FILE MANUALLY.
|
||||
*
|
||||
* This file is automatically generated by the Boostrap Astro Integration.
|
||||
* This file is automatically generated by the Bootstrap Astro Integration.
|
||||
* It contains the type definitions for the components that are auto imported in all pages.
|
||||
* @see site/src/libs/astro.ts
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user