doc: update README

- add MIT license
- update README. remove WIP mark.
- move some content from README to documentation.
This commit is contained in:
yyc12345 2024-07-13 22:50:37 +08:00
parent 1ccea1290e
commit cc689ce8bb
3 changed files with 48 additions and 13 deletions

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2024-2024 yyc12345
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,9 +1,16 @@
# YYC Commonplace # YYC Commonplace
During the development of a few projects, I gradually understand how Windows make the compromise with the code written by its old developers, and what is developer wanted in contemporary C++ standard library under Windows environment. So I create this static library for all of my C++ project, After this, I do not need to write these duplicated code in each project. I can use a clear and easy way to manage these codes. I can easily fix issues found in project using this library by updating a single project, rather than fixing these duplicated code in each project one by one because all of them share the same implementations. YYC Commonplace, or YYCCommonplace (abbr. YYCC) is a static library specifically resolving my requirements in C++ and Windows scope.
This project mainly is served for my personal use. But I would be honored if you would like to use this in your project. Almost of my projects, except some critical projects (they will copy this project implementations into their own project scope to eliminate non-common library dependency), will gradually adapt to this project and drop their own individual implementations. ## Usage
This project includes Visual Studio project file and CMake support at the same time. So that at least I can use one of them freely. For more usage about this library, please build documentation of this project via Doxygen and read it.
**WIP. Do not use it now.** And I also highly recommend that you read documentation first before writing with this library.
## Build
This project require at least CMake 3.23 to build. We suggest that you only use stable version (tagged commit). The latest commit may still work in progress and not stable.
For Windows builing, you can browse GitHub action script to have a preview. It actually is a simple calling to script file.
For other platforms building (e.g. Linux), you can following common builing way of CMake project.

View File

@ -2,14 +2,23 @@
\page intro Introduction to YYCCommonplace \page intro Introduction to YYCCommonplace
YYCCommonplace, or YYC Commonplace (abbr. YYCC), is a static library providing various useful C++ functions when programming with standard library or Windows environment. YYCCommonplace, or YYC Commonplace (abbr. YYCC),
is a static library providing various useful C++ functions
when programming with standard library or Windows environment.
Actually YYCC provides the functions which I frequently used in my personal projects. During the development of a few projects,
Thus I do not need copy these functions from one project to another project. I gradually understand how Windows make the compromise with the code written by its old developers,
I can write them once and use them everywhere. and what is developer wanted in contemporary C++ standard library under Windows environment.
It's also good for bug fix. So I create this static library for all of my C++ project.
If I found bug in these code, I only need to fix it in this project. After this, I do not need to write these duplicated code in each project.
Otherwise I need to fix them one by one in each project because they share the same code. I can use a clear and easy way to manage these codes.
I can easily fix issues found in project using this library by updating a single project,
rather than fixing these duplicated code in each project one by one
because all of them share the same implementations.
This project mainly is served for my personal use.
But I would be honored if you would like to use this in your project.
Almost of my projects will gradually adapt to this project and drop their own individual implementations.
\section intro__why Why YYCCommonplace \section intro__why Why YYCCommonplace
@ -71,6 +80,4 @@ Before using this library, I suggest you read this manual fully to have a full o
Otherwise you may make mistake during using this library. Otherwise you may make mistake during using this library.
I suggest you read this manual from top to bottom in the left tree panel, one by one. I suggest you read this manual from top to bottom in the left tree panel, one by one.
This library is a static library.
*/ */