Home
last modified time | relevance | path

Searched refs:headings (Results 1 – 17 of 17) sorted by relevance

/expo/docs/common/
H A DheadingManager.test.ts12 const meta = { maxHeadingDepth: 2, headings: [] };
15 expect(headingManager.headings).toEqual([]);
16 expect(headingManager.metadata.headings).toEqual([]);
22 const meta = { headings: [{ title: TITLE, depth: 1, type: 'text', _processed: true }] };
31 const meta = { headings: [{ title: TITLE, depth: 1, type: 'text' }] };
44 headings: [{ title: META_TITLE, depth: META_LEVEL, type: 'text' }],
63 headingManager.metadata.headings?.forEach(it => (it._processed = false));
87 expect(headingManager.headings).toContain(ok);
88 expect(headingManager.headings).not.toContain(tooLow);
89 expect(headingManager.headings).not.toContain(tooHigh);
[all …]
H A DheadingManager.ts47 type Metadata = Partial<PageMetadata> & { headings: (RemarkHeading & { _processed?: boolean })[] };
73 public get headings() { method in HeadingManager
148 const entry = this._meta.headings.find(
H A Dtest-utilities.tsx9 <HeadingsContext.Provider value={new HeadingManager(new GithubSlugger(), { headings: [] })}>
/expo/docs/ui/components/TableOfContents/
H A DuseHeadingObserver.ts16 const [headings, setHeadings] = useState<HeadingEntry[]>([]); constant
21 const headings = Array.from(document.querySelectorAll<HTMLHeadingElement>(tags)).map( constant
37 setHeadings(headings);
38 headings.forEach(heading => observerRef.current?.observe(heading.element));
47 return { headings, activeId };
H A DTableOfContents.tsx15 const { headings, activeId } = useHeadingsObserver();
25 {headings.map(heading => (
/expo/docs/mdx-plugins/
H A Dremark-export-headings.js22 const headings = [];
27 headings.push({
41 estree: parse(`export const ${exportName} = ${JSON.stringify(headings)};`, {
/expo/docs/components/page-higher-order/
H A DDocumentationElements.tsx14 headings: RemarkHeading[];
21 headings: props.headings,
/expo/docs/components/
H A DDocumentationSidebarRight.tsx70 const { headings } = this.props.headingManager;
72 for (const { ref, slug } of headings) {
95 const { headings } = this.props.headingManager;
97 //filter out headings nested too much
98 const displayedHeadings = headings.filter(
H A DDocumentationSidebarRight.test.tsx10 const headingManager = new HeadingManager(new GithubSlugger(), { headings: [] });
/expo/docs/ui/components/Step/
H A DStep.tsx15 …<div className="pt-1.5 w-full max-w-[calc(100%-44px)] prose-headings:!-mt-1 prose-ul:!mb-0 prose-o…
/expo/docs/ui/components/Collapsible/
H A DCollapsible.test.tsx11 const headingManager = new HeadingManager(new GithubSlugger(), { headings: [] });
H A Dindex.tsx61 // These are normally generated for MD (#) headings, but Collapsible doesn't have those.
/expo/docs/.vale/writing-styles/expo-docs/
H A DHeadingCase.yml3 …//github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md#headings'
/expo/docs/ui/components/Navigation/
H A DNavigation.test.tsx16 const headingManager = new HeadingManager(new GithubSlugger(), { headings: [] });
/expo/guides/
H A DExpo Documentation Writing Style Guide.md62 - **Ampersands (&)**: Don't use "&" instead of "and" in headings, text, navigation, or tables of co…
122 One exception to avoid them is in headings for sections or sub-sections.
159 Use sentence case for section or sub-section headings inside an individual page except when the hea…
/expo/packages/expo-location/build/
H A DLocation.types.js.map1 …s subscription object returned by methods watching for new locations or headings.\n */\nexport typ…
/expo/docs/
H A DREADME.md71 - `maxHeadingDepth`: The max level of headings shown in Table of Content on the right side. Default…