lupine.press 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `lupine.press` is a lightweight, high-performance documentation site framework built on top of `lupine.web`. It provides a complete solution for rendering Markdown-based documentation websites with a responsive layout, sidebar navigation, and theming support.
4
4
 
5
- It is designed to work seamlessly with the `lupine` ecosystem, powering documentation sites like the official LupineJS documentation.
5
+ It is designed to work seamlessly with the `lupine` ecosystem, powering documentation sites like the official Lupine.js documentation.
6
6
 
7
7
  ## Features
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.press",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "A modern documentation generator for lupine.js",
5
5
  "main": "src/index.ts",
6
6
  "license": "MIT",
@@ -24,6 +24,9 @@ export const PressContent = (props: {
24
24
  // maxWidth: isHome ? '100%' : '800px',
25
25
  margin: props.isHome ? '0' : '0 auto',
26
26
  minWidth: 0,
27
+ a: {
28
+ textDecoration: 'underline',
29
+ },
27
30
  },
28
31
  '.page-heading-container': {
29
32
  width: '240px',
@@ -75,6 +78,9 @@ export const PressContent = (props: {
75
78
  display: 'none',
76
79
  },
77
80
  '.press-mobile-toc': { display: 'flex' },
81
+ '.press-content': {
82
+ padding: props.isHome ? '0' : '2rem 1rem',
83
+ },
78
84
  },
79
85
  };
80
86
  return (
@@ -61,6 +61,9 @@ export const PressFrame = (props: PressFrameProps) => {
61
61
  code: {
62
62
  fontFamily: 'var(--font-family-mono, monospace)',
63
63
  },
64
+ img: {
65
+ maxWidth: '100%',
66
+ },
64
67
  };
65
68
 
66
69
  const cssContainer: CssProps = {
@@ -2,7 +2,7 @@ import { bindGlobalStyle, isFrontEnd, PageProps } from 'lupine.components';
2
2
  import { PressLayout } from '../components';
3
3
  import { getPressData, getPressSubDir, setPressLangs } from '../services/cache';
4
4
 
5
- export const PressPage = (props: PageProps) => {
5
+ export const PressPage = async (props: PageProps) => {
6
6
  if (!isFrontEnd()) {
7
7
  return <div></div>;
8
8
  }
@@ -55,7 +55,7 @@ export const PressPage = (props: PageProps) => {
55
55
  const rootIndex = markdownConfig[`/${langName}/index`]?.data || {};
56
56
  const rootNav = rootIndex.nav || [];
57
57
  const rootSidebar = rootIndex.sidebar || [];
58
- const siteTitle = rootIndex.title || 'LupineJS';
58
+ const siteTitle = rootIndex.title || 'Lupine.js';
59
59
  // siteStyles should be {body:{'font-family':'...'}}
60
60
  const siteStyles = rootIndex.styles || {};
61
61
  bindGlobalStyle('customer-css', siteStyles, false, true);